Skip to content

Commit

Permalink
Add Github Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Jan 14, 2021
1 parent 03e6de9 commit 1f187fa
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: jiro4989/setup-nim-action@v1
with:
nim-version: 'stable'
- name: Run tests
run: |
nimble develop
nimble test
2 changes: 1 addition & 1 deletion polymorph.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ license = "Apache License 2.0"
requires "nim >= 1.0.0"

task test, "Test suite":
exec "nim c -r tests/testall"
exec "nim c -d:debug -r tests/testall"

0 comments on commit 1f187fa

Please sign in to comment.