-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (44 loc) · 1.05 KB
/
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
43
44
45
46
47
48
49
50
# SPDX-FileCopyrightText: 2023 Iván Szkiba
#
# SPDX-License-Identifier: MIT
name: Test
on:
push:
branches:
- master
tags:
- "v*"
pull_request:
jobs:
test:
strategy:
matrix:
platform:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{matrix.platform}}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@v4
- name: Lint
if: ${{ matrix.platform == 'ubuntu-latest' }}
uses: magefile/mage-action@v3
with:
version: latest
args: lint
- name: Test
uses: magefile/mage-action@v3
with:
version: v1.14.0
args: test
- name: Upload Coverage
if: ${{ matrix.platform == 'ubuntu-latest' }}
uses: codecov/codecov-action@v4
- name: Generate Go Report Card
if: ${{ matrix.platform == 'ubuntu-latest' }}
uses: creekorful/goreportcard-action@v1.0