forked from goplus/gop
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1007 Bytes
/
go.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
name: Go+ CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
Check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check goreleaser files
run: |
pip install --no-input pyyaml
python .github/workflows/check_goreleaser_config.py
Test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x, 1.20.x, 1.21.x]
os: [ubuntu-latest, windows-latest, macos-11]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Test Go+ installer
run: |
git config --global user.email "build-robot@goplus.org"
git config --global user.name "build robot"
go test -v cmd/make_test.go
- name: Run testcases
run: go test -v -coverprofile="coverage.txt" -covermode=atomic ./...
- name: Codecov
uses: codecov/codecov-action@v4