forked from exercism/go
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.1 KB
/
exercise-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: Exercise tests
on:
workflow_dispatch:
push:
branches:
- main
- master
pull_request:
jobs:
test:
name: Go ${{ matrix.go-version }} - ${{ matrix.os }}/${{ matrix.test-arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
go-version: [1.20.x]
os: [ubuntu-22.04, windows-2022, macOS-latest]
test-arch: [amd64]
race: ["-race"]
include:
- go-version: 1.20.x
test-arch: "386"
os: ubuntu-22.04
race: ""
- go-version: 1.20.x
test-arch: "386"
os: windows-2022
race: ""
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: ${{ matrix.go-version }}
- name: Lint and Test exercises
shell: bash
env:
GOARCH: ${{ matrix.test-arch }}
run: |
./bin/fetch-golangci-lint
./bin/run-tests