Skip to content

Commit

Permalink
Tests run on push and PR, docs on release
Browse files Browse the repository at this point in the history
  • Loading branch information
gabbhack committed Nov 5, 2021
1 parent 5df24c9 commit ca48c18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 27 deletions.
28 changes: 2 additions & 26 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,19 @@
name: Build docs

on:
push:
branches:
- master
path-ignore:
- 'README.md'
release:
types: [published]

jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[skip-docs]')"
strategy:
matrix:
nim: ['1.4.0', 'stable']
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Cache nimble
id: cache-nimble
uses: actions/cache@v1
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}
if: runner.os != 'Windows'

- name: Set up Nim
uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim }}

- name: Install dependencies
run: nimble install -d -y

- name: Run tests
run: nimble test
nim-version: stable

- name: Build docs
run: nimble docs
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
name: Run tests

on:
push:
branches:
- master
path-ignore:
- 'README.md'
pull_request:
branches:
- master
path-ignore:
- 'README.md'

release:
types: [published]

Expand Down

0 comments on commit ca48c18

Please sign in to comment.