Skip to content

Commit

Permalink
CI: Add workflow for running initial tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ee7 committed Oct 23, 2020
1 parent ad83256 commit ec650a9
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: tests

on: [push, pull_request]

jobs:
all_tests:
strategy:
fail-fast: false
matrix:
target:
- os: linux
arch: 64bit
- os: mac
arch: 64bit
- os: windows
arch: 64bit
include:
- target:
os: linux
builder: ubuntu-18.04
- target:
os: mac
builder: macos-10.15
- target:
os: windows
builder: windows-2019

name: "${{ matrix.target.os }}-${{ matrix.target.arch }}"
runs-on: ${{ matrix.builder }}
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Nim
uses: jiro4989/setup-nim-action@v1
with:
nim-version: "1.4.0"

- name: Install our Nimble dependencies
run: nimble -y install --depsOnly

- name: Run `tests/all_tests.nim`
run: nim c --styleCheck:error -r ./tests/all_tests.nim

0 comments on commit ec650a9

Please sign in to comment.