diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 8744821..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Run tests -on: [push, pull_request] -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - - name: Cache choosenim - id: cache-choosenim - uses: actions/cache@v1 - with: - path: ~/.choosenim - key: ${{ runner.os }}-choosenim-stable - - - name: Cache nimble - id: cache-nimble - uses: actions/cache@v1 - with: - path: ~/.nimble - key: ${{ runner.os }}-nimble-stable - - - uses: jiro4989/setup-nim-action@v1.0.2 - - - run: nimble test -y diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7465706 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: Run tests +on: [push, pull_request] +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + nim: + - '1.6.x' + - 'stable' + - 'devel' + fail-fast: false + name: Nim ${{ matrix.nim }} + steps: + - uses: actions/checkout@v3 + - uses: jiro4989/setup-nim-action@v1.4.3 + with: + nim-version: ${{ matrix.nim }} + - run: nimble -y install + - run: nimble test -y