Skip to content

Commit ca48c18

Browse files
committed
Tests run on push and PR, docs on release
1 parent 5df24c9 commit ca48c18

2 files changed

Lines changed: 7 additions & 27 deletions

File tree

.github/workflows/docs.yml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,19 @@
11
name: Build docs
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
path-ignore:
8-
- 'README.md'
94
release:
105
types: [published]
116

127
jobs:
138
build:
14-
if: "! contains(toJSON(github.event.commits.*.message), '[skip-docs]')"
15-
strategy:
16-
matrix:
17-
nim: ['1.4.0', 'stable']
18-
os: [ubuntu-latest, windows-latest]
19-
runs-on: ${{ matrix.os }}
9+
runs-on: ubuntu-latest
2010
steps:
2111
- uses: actions/checkout@v2
2212

23-
- name: Cache nimble
24-
id: cache-nimble
25-
uses: actions/cache@v1
26-
with:
27-
path: ~/.nimble
28-
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}
29-
if: runner.os != 'Windows'
30-
3113
- name: Set up Nim
3214
uses: jiro4989/setup-nim-action@v1
3315
with:
34-
nim-version: ${{ matrix.nim }}
35-
36-
- name: Install dependencies
37-
run: nimble install -d -y
38-
39-
- name: Run tests
40-
run: nimble test
16+
nim-version: stable
4117

4218
- name: Build docs
4319
run: nimble docs

.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
name: Run tests
22

33
on:
4+
push:
5+
branches:
6+
- master
7+
path-ignore:
8+
- 'README.md'
49
pull_request:
510
branches:
611
- master
712
path-ignore:
813
- 'README.md'
9-
1014
release:
1115
types: [published]
1216

0 commit comments

Comments
 (0)