forked from KSP-CKAN/CKAN
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (74 loc) · 2.19 KB
/
test.yml
File metadata and controls
78 lines (74 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Test CKAN + NetKAN
on:
pull_request:
types: []
push:
workflow_call:
jobs:
build-debug:
uses: ./.github/workflows/build.yml
run-tests:
needs: build-debug
strategy:
fail-fast: false
matrix:
os:
- windows-latest
- ubuntu-22.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Restore cache for _build/tools
uses: actions/cache@v4
with:
path: _build/tools
key: build-tools-${{ hashFiles('build.sh', 'build.ps1', 'build/*') }}
- name: Download out artifact on Linux
if: matrix.os == 'ubuntu-22.04'
uses: actions/download-artifact@v5
with:
name: Debug-out-unsigned
path: _build/out/
- name: Download repack artifact on Linux (for smoke tests)
if: matrix.os == 'ubuntu-22.04'
uses: actions/download-artifact@v5
with:
name: Debug-repack-unsigned
path: _build/repack/
- name: Run tests on Linux
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get install -y xvfb
chmod a+x _build/out/Build/*/bin/net8.0/Build _build/out/Build/*/obj/*/net8.0/apphost
xvfb-run ./build.sh test+only --configuration=Debug --where="Category!=FlakyNetwork"
- name: Build and run tests on Windows
if: matrix.os == 'windows-latest'
env:
ErrorView: NormalView
shell: powershell
run: .\build.ps1 test --configuration=Debug --where="Category!=FlakyNetwork"
- name: Report Coveralls
uses: coverallsapp/github-action@v2
with:
format: cobertura
parallel: true
flag-name: ${{ matrix.os }}
coveralls-finish:
needs: run-tests
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Finish Coveralls
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
# notify:
# needs:
# - build-debug
# - run-tests
# if: failure()
# uses: ./.github/workflows/notify.yml
# with:
# name: ${{ github.workflow }}
# success: ${{ !contains(needs.*.result, 'failure') }}
# secrets: inherit