This repository was archived by the owner on Apr 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (52 loc) · 1.25 KB
/
Copy pathtest.yml
File metadata and controls
61 lines (52 loc) · 1.25 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
name: Test
on:
push:
paths-ignore:
- 'LICENCE'
- '*.md'
branches:
- main
- devel
pull_request:
paths-ignore:
- 'LICENCE'
- '*.md'
branches:
- main
- devel
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- ubuntu-18.04
nim-version:
- stable
- devel
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v2
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-${{ matrix.nim-version}}
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v2
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ matrix.nim-version}}-${{ hashFiles('torci.nimble') }}
restore-keys: |
${{ runner.os }}-nimble-${{ matrix.nim-version}}-
- name: Setup Nim
uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim-version }}
- name: Install packages
run: nimble install -y
- name: Test
run: nimble test -y