Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 685b693

Browse files
committed
Update test file
1 parent 7cccacc commit 685b693

2 files changed

Lines changed: 39 additions & 21 deletions

File tree

.github/workflows/Test_linux.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Module Test CI
1+
name: ShipWreck Engine Linux
22
on:
33
push:
44
branches:
@@ -24,24 +24,9 @@ jobs:
2424
- name: Configure Environement
2525
run: |
2626
./check_for_update.sh -i
27-
cd tests
28-
cmake -B ${{github.workspace}}/tests/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
29-
apt update
30-
apt install lcov -y
27+
mkdir build
28+
cd build
29+
cmake -B ${{github.workspace}}/build -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
3130
32-
- name: Build tests
33-
run: cmake --build ${{github.workspace}}/tests/build --config ${{env.BUILD_TYPE}} -- -j 9
34-
35-
- name: Lauch tests
36-
run: |
37-
./tests/test.out
38-
lcov --directory ${{github.workspace}}/tests/build/ --capture --output-file ${{github.workspace}}/code_coverage.info -rc lcov_branch_coverage=1
39-
lcov --remove ${{github.workspace}}/code_coverage.info '/usr/*' '*/build/*' --output-file ${{github.workspace}}/code_coverage.info
40-
lcov --list ${{github.workspace}}/code_coverage.info >> coverage.txt
41-
42-
- name: Create artefact
43-
continue-on-error: true
44-
uses: actions/upload-artifact@v2
45-
with:
46-
name: coverage
47-
path: coverage.txt
31+
- name: Build
32+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -- -j 9

.github/workflows/Test_windows.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Module Test CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- develop
7+
pull_request:
8+
branches:
9+
- master
10+
- develop
11+
workflow_dispatch:
12+
release:
13+
types: [published]
14+
15+
env:
16+
BUILD_TYPE: DEBUG
17+
18+
jobs:
19+
Test_windows:
20+
runs-on: windows-latest
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v2
24+
25+
- name: Configure Environement
26+
run: |
27+
./check_for_update.sh -i
28+
mkdir build
29+
cd build
30+
cmake -B ${{github.workspace}}/build -G"Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
31+
32+
- name: Build
33+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -- -j 9

0 commit comments

Comments
 (0)