-
-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (32 loc) · 902 Bytes
/
push.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
on: push
concurrency:
group: ci-${{ github.head_ref || github.ref }}-${{ github.repository }}
cancel-in-progress: true
name: Build on push
jobs:
tests-unit:
name: Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.19.x", "1.20.x"]
steps:
- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v3
- name: Install deps
run: |
sudo -E env "PATH=$PATH" make deps &&
sudo pip install j2cli
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
install-only: true
- name: Build test
run: sudo -E env "PATH=$PATH" make multiarch-build
- name: Tests
run: |
sudo -E env "PATH=$PATH" make test-coverage