forked from mvisonneau/gitlab-ci-pipelines-exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (43 loc) · 1.1 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
51
52
---
name: test
on:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- main
jobs:
test:
strategy:
matrix:
go-version:
- 1.16
os:
- ubuntu-20.04
- macos-10.15
- macos-11.0
# Would need to sort out some FS issues: https://github.com/mvisonneau/gitlab-ci-pipelines-exporter/runs/1565120934
# - windows-2019
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Lint
if: ${{ matrix.os == 'ubuntu-20.04' && matrix.go-version == '1.16' }}
run: make lint
- name: Test
run: make coverage
- name: Publish coverage to coveralls.io
uses: shogo82148/actions-goveralls@v1
if: ${{ matrix.os == 'ubuntu-20.04' && matrix.go-version == '1.16' }}
with:
path-to-profile: coverage.out
- name: Build
run: make build