Skip to content

Commit 911c7e1

Browse files
authored
Merge pull request #27 from tomhea/tests-ci
add tests workflow
2 parents 1109884 + 9e467b1 commit 911c7e1

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CMake
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
BUILD_TYPE: Release
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Configure CMake
20+
run: cmake -B ./build
21+
22+
- name: Build Tests
23+
run: cmake --build ./build --target farray1_tests
24+
25+
- name: Test
26+
run: |
27+
mkdir build/tests_results -p
28+
build/farray1_tests -r junit > build/tests_results/farray1.xml
29+
30+
- name: Test Report
31+
uses: dorny/test-reporter@v1
32+
if: success() || failure()
33+
with:
34+
name: Farray1 Tests
35+
path: build/tests_results/farray1.xml
36+
reporter: java-junit

0 commit comments

Comments
 (0)