name: Github Actions
on: [push, pull_request]
jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, windows-latest]

    runs-on: ${{ matrix.os }}

    steps:
    - uses: actions/checkout@v2
    - uses: jiro4989/setup-nim-action@v1
    - run: nimble test -y
    - run: nimble test --gc:orc -y
    - run: nimble test -y -d:vmathObjBased
    - run: nimble test -y -d:vmathArrayBased
    - run: nim js -r tests/test.nim
