-
Notifications
You must be signed in to change notification settings - Fork 16
62 lines (55 loc) · 1.3 KB
/
test_versioning.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
53
54
55
56
57
58
59
60
61
62
name: test_versioning
on:
push:
branches:
- master
tags:
- 'v*.*.*'
jobs:
test_vX:
runs-on: ubuntu-latest
strategy:
matrix:
type:
- default
- no-color
- 'yes'
- all
steps:
- uses: actions/checkout@v4
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v3
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble
restore-keys: |
${{ runner.os }}-nimble
- uses: jiro4989/setup-nim-action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
if: matrix.type == 'default'
- uses: ./
with:
no-color: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
if: matrix.type == 'no-color'
- uses: ./
with:
yes: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
if: matrix.type == 'yes'
- uses: ./
with:
no-color: true
yes: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
if: matrix.type == 'all'
- name: Print Nim version
run: nim -v
- name: Print Nimble version
run: nimble -v
- name: Run build test
run: nimble install -Y nimjson
- name: Run command
run: nimjson -h