From f15e35e3fdddf6bf47bc07b8720b77d4519832bc Mon Sep 17 00:00:00 2001 From: Pietro Peterlongo Date: Mon, 13 Feb 2023 17:24:30 +0100 Subject: [PATCH] update github actions build -> test + add stable and devel --- .github/workflows/build.yml | 26 -------------------------- .github/workflows/test.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/test.yml 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