Skip to content

Commit bc34f66

Browse files
authored
Merge pull request #1 from Helienzo/feature/testing_with_actions
Create automatic tests with Github actions
2 parents 6e3f42b + 50e0bcb commit bc34f66

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/c-cpp.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Create build directory
18+
run: mkdir -p build
19+
20+
- name: Run CMake
21+
working-directory: build
22+
run: cmake .. -DSTATIC_QUEUE_TEST=ON
23+
24+
- name: Build the project
25+
working-directory: build
26+
run: make
27+
28+
- name: Run tests
29+
working-directory: build
30+
run: ./test_static_queue

0 commit comments

Comments
 (0)