-
Notifications
You must be signed in to change notification settings - Fork 64
52 lines (43 loc) · 1004 Bytes
/
test.yml
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
name: Run tests
on:
push:
branches:
- master
pull_request:
jobs:
nim-tests:
name: Nim tests
timeout-minutes: 60
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Nim
uses: jiro4989/setup-nim-action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Can build
run: nimble -y build
- name: Run tests
run: nimble -y test
unix-test:
name: Install script test (Unix like)
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Run script
run: bash scripts/choosenim-unix-init.sh -y
- name: Update path
run: echo "~/.nimble/bin" >> $GITHUB_PATH
- name: Test Nim works
run: nim --version