mirror of
https://github.com/netbirdio/netbird.git
synced 2025-04-10 01:59:01 +02:00
Add build to the test
This commit is contained in:
parent
e059059e62
commit
744984861b
29
.github/workflows/golang-test.yml
vendored
29
.github/workflows/golang-test.yml
vendored
@ -19,3 +19,32 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test ./...
|
run: go test ./...
|
||||||
|
|
||||||
|
test_build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ windows, linux, macos ]
|
||||||
|
go-version: [1.16.x]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ${{ matrix.go-version }}
|
||||||
|
|
||||||
|
- name: Cache Go modules
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/go/pkg/mod
|
||||||
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-go-
|
||||||
|
|
||||||
|
- name: Install modules
|
||||||
|
run: go mod tidy
|
||||||
|
|
||||||
|
- name: run build
|
||||||
|
run: GOOS=${{ matrix.go-version }} go build .
|
Loading…
Reference in New Issue
Block a user