Skip to content

Commit

Permalink
ci: add tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ee7 committed Feb 16, 2024
1 parent eed75bb commit 342b800
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 342b800

Please sign in to comment.