Skip to content

Commit 32e8e09

Browse files
committed
chore: add testing workflow
1 parent 3ae15cc commit 32e8e09

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.forgejo/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: test on push
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Install dependencies
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y cmake curl build-essential gcc
23+
24+
- name: Build with CMake
25+
run: |
26+
mkdir -p build
27+
cd build
28+
cmake ..
29+
cmake --build .
30+
31+
- name: Run tests
32+
run: |
33+
cd build
34+
ctest --output-on-failure
35+
36+
- name: Run the executable
37+
run: |
38+
cd build
39+
echo "E" | ./multitool++

0 commit comments

Comments
 (0)