forked from exercism/configlet
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 1.41 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
name: tests
on:
push:
paths:
- "**"
- "!**.md"
pull_request:
paths:
- "**"
- "!**.md"
workflow_dispatch:
jobs:
all_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
- os: windows
runs-on: windows-2022
arch: x86-64
name: "${{ matrix.os }}-${{ matrix.arch }}"
runs-on: ${{ matrix.runs-on }}
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
- name: Configure the git user # Required to create a commit in our binary tests
run: |
git config --global user.email "66069679+exercism-bot@users.noreply.github.com"
git config --global user.name "Exercism Bot"
- name: On Linux, install musl
if: matrix.os == 'linux'
run: ./.github/bin/linux-install-musl
- name: Install Nim
uses: iffy/install-nim@c76b9157e544576bf61c932ee66ff3c7d194deb9
with:
version: "binary:2.0.0"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install our Nimble dependencies
run: nimble --accept install --depsOnly
- name: Run our test suite
run: nimble test