-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (55 loc) · 1.77 KB
/
testingOnPush_Linux.yaml
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
name: Linux (Ubuntu) Tests
on:
push:
paths:
- 'tests/**'
- 'src/**'
- '.github/workflows/testingOnPush_Linux.yaml'
workflow_dispatch:
jobs:
testStable:
runs-on: ubuntu-latest
name: Nim stable Test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nim
uses: jiro4989/setup-nim-action@v2
with:
nim-version: 'stable'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install nimCSO (and dependencies)
run: nimble install -y
- name: Compile minCSO
run: nim c -d:release src/nimcso
- name: Runtime all tests under release mode
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/runAll
- name: Runtime all tests under danger mode
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/runAll
testVersionMatrix:
runs-on: ubuntu-latest
strategy:
matrix:
nim:
- '1.6.x'
- '2.0.0'
- '2.0.x'
name: Nim ${{ matrix.nim }} Test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nim
uses: jiro4989/setup-nim-action@v2
with:
nim-version: ${{ matrix.nim }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install nimCSO (and dependencies)
run: |
nimble install -y yaml@1.1.0
nimble install -y arraymancer@0.7.32
- name: Compile minCSO
run: nim c -d:release src/nimcso
- name: Runtime all tests under release mode
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/runAll
- name: Runtime all tests under danger mode
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/runAll