-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1008 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: tests
on:
push:
branches:
- dev
- main
branches-ignore:
- libn00b*
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
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@2546aaf825947f6bf76be75ff78d74176992e99d # 5.0.6
with:
version: "binary:2.0.8"
env:
GITHUB_TOKEN: ${{ github.token }} # Avoid rate limiting.
- name: Install Nimble dependencies
run: nimble --accept install --depsOnly
- name: Build
run: nimble build # Trigger `before build` task to install headers.
- name: Run tests
run: nimble test