build(deps): bump golang.org/x/net from 0.0.0-20211020060615-d418f374d309 to 0.17.0 #157
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
name: CI | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ '*' ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.18 | |
id: go | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up dependencies | |
run: go mod download | |
- name: Build application | |
run: | | |
cd cmd/openapi-mock | |
go build -v | |
cd ../.. | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v2 | |
with: | |
version: v1.51 | |
- name: Run tests | |
run: go test -v $(go list ./... | grep -v vendor) | |
- name: Code Climate Coverage | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageCommand: go test -v ./... -coverprofile=c.out | |
prefix: "github.com/muonsoft/openapi-mock" |