From 342b800b1d2eccd2db87d58975f815587240fb99 Mon Sep 17 00:00:00 2001 From: ee7 <45465154+ee7@users.noreply.github.com> Date: Fri, 16 Feb 2024 17:05:10 +0100 Subject: [PATCH] ci: add tests workflow --- .github/workflows/tests.yml | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..40afff2 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,43 @@ +name: tests + +on: + push: + branches: + - dev + - main + pull_request: + workflow_dispatch: + +permissions: + contents: read + +jobs: + tests: + strategy: + fail-fast: false + matrix: + include: + - os: linux + runs-on: ubuntu-22.04 + arch: x86_64 + + - os: macos + runs-on: macos-12 + arch: x86_64 + + name: "${{ matrix.os }}-${{ matrix.arch }}" + runs-on: ${{ matrix.runs-on }} + + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + + - name: Install Nim + uses: iffy/install-nim@049e1fad22d41813c77cff11ab8e1541a872014a + with: + version: "binary:2.0.0" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Avoid rate limiting. + + - name: Run tests + run: nimble test