Skip to content

feat: Return a non-zero exit code on compile failure (#111) #105

feat: Return a non-zero exit code on compile failure (#111)

feat: Return a non-zero exit code on compile failure (#111) #105

Workflow file for this run

name: test
on:
# Allow running manually
workflow_dispatch:
# Run automatically
push:
branches:
- master
paths-ignore:
- 'LICENSE'
- '*.md'
- '.github/**'
- '*.yml'
pull_request:
branches:
- master
types:
- opened
- reopened
- synchronize
paths-ignore:
- '.github/**'
- 'LICENSE'
- '*.md'
- '*.yml'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
nim:
- 1.6.4
- stable
name: Nim ${{ matrix.nim }} (${{ matrix.os }})
steps:
- uses: actions/checkout@v2
- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v2
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-${{ matrix.nim }}
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v2
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}
- name: Set up Nim
uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim }}
- name: Print Nim version
run: nim -v
- name: Print Nimble version
run: nimble -v
- name: Run Nimble tests
run: nimble test -y
- name: Build with Nimble
run: nimble build -y