mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-26 00:44:47 -04:00
feat(CI&go4k): Run go tests in cloud, skipping sample tests if on another platform than Windows.
This commit is contained in:
35
.github/workflows/test.yml
vendored
Normal file
35
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
# Run unit tests using CTest and go tests
|
||||
name: Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- dev
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: lukka/get-cmake@v3.18.3
|
||||
- uses: actions/setup-go@v2
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ilammy/setup-nasm@v1.1.0
|
||||
- run: /home/runner/nasm/nasm -version
|
||||
- name: Running ctests
|
||||
env:
|
||||
ASM_NASM: /home/runner/nasm/nasm
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -GNinja ..
|
||||
ninja
|
||||
ctest --output-on-failure
|
||||
- name: Running go tests
|
||||
run: |
|
||||
cd go4k
|
||||
go test . ./bridge
|
Reference in New Issue
Block a user