Skip to content

Commit e5b1e63

Browse files
kolyshkindrakenclimber
authored andcommitted
ci/gha: add build and test job
Those are performed for supported golang versions. Signed-off-by: Kir Kolyshkin <[email protected]> Acked-by: Paul Moore <[email protected]> Signed-off-by: Tom Hromatka <[email protected]>
1 parent 4f8ccae commit e5b1e63

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: test
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
branches:
7+
- main
8+
- master
9+
- release-*
10+
pull_request:
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-20.04
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
go-version: [1.15.x, 1.16.x, 1.17.x]
19+
20+
steps:
21+
22+
- name: checkout
23+
uses: actions/checkout@v2
24+
25+
- name: install deps
26+
run: |
27+
sudo apt -q update
28+
sudo apt -q install libseccomp-dev
29+
30+
- name: install go ${{ matrix.go-version }}
31+
uses: actions/setup-go@v2
32+
with:
33+
stable: '!contains(${{ matrix.go-version }}, "beta") && !contains(${{ matrix.go-version }}, "rc")'
34+
go-version: ${{ matrix.go-version }}
35+
36+
- name: build
37+
run: make check-build
38+
39+
- name: test
40+
run: make test

0 commit comments

Comments
 (0)