fix: vendor/golang.org/x/net/http2/Dockerfile to reduce vulnerabilities #199
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Test | |
jobs: | |
test: | |
strategy: | |
matrix: | |
#go-version: [1.15.x, 1.16.x] | |
go-version: [1.15.x] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run Revive Action by building from repository | |
uses: morphy2k/revive-action@v1.4.1 | |
with: | |
exclude: "./vendor/..." | |
name: "Revive" | |
- name: Install kubebuilder tools | |
run: ./hack/install-kubebuilder-tools.sh | |
- name: Generate code | |
run: ./hack/generate-code.sh | |
- name: Run go fmt | |
run: go fmt ./... | |
#run: diff -u <(echo -n) <(gofmt -d -s .) | |
- name: Run go vet | |
run: go vet ./... | |
- name: Install golint | |
run: GO111MODULE=off GOBIN=$(pwd)/bin go get golang.org/x/lint/golint | |
- name: Test | |
run: sudo PATH=${PATH}:./bin ./hack/test-go.sh | |
- name: Send coverage | |
uses: shogo82148/actions-goveralls@v1 | |
with: | |
path-to-profile: coverage.out | |
flag-name: Go-${{ matrix.go }} | |
parallel: true | |
env: | |
KUBEBUILDER_ASSETS: "$(pwd)/bin" | |
# notifies that all test jobs are finished. | |
finish: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: shogo82148/actions-goveralls@v1 | |
with: | |
parallel-finished: true |