-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 949 Bytes
/
test.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
# SPDX-FileCopyrightText: Fabio Forni <development@redaril.me>
# SPDX-License-Identifier: CC0-1.0
name: test
on:
push:
branches: ["main"]
pull_request:
jobs:
test:
strategy:
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
version: [1.21.x]
name: Go ${{matrix.version}} tests on ${{matrix.os}}
runs-on: ${{matrix.os}}
steps:
- name: Install Task
uses: arduino/setup-task@v1
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go ${{matrix.version}}
uses: actions/setup-go@v4
with:
go-version: ${{matrix.version}}
- name: Build code
run: task
- name: Run tests
run: task check
updateReports:
name: Update reports
needs: test
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Update Go Report Card
uses: creekorful/goreportcard-action@v1.0