Go version: run build checks & tests (#317)
This commit is contained in:
29
.github/workflows/build.yml
vendored
Normal file
29
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ^1.15
|
||||
- name: Build binaries
|
||||
working-directory: cmd/blackbox
|
||||
run: go build
|
||||
- name: Run unit tests
|
||||
run: go test ./...
|
||||
- name: Run integration tests
|
||||
working-directory: integrationTest
|
||||
run: umask 0027 ; rm -rf /tmp/bbhome-* && go test -long -nocleanup
|
||||
Reference in New Issue
Block a user