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