This repository was archived by the owner on Feb 14, 2025. It is now read-only.
Bump golang.org/x/net from 0.0.0-20201021035429-f5854403a974 to 0.33.0 #76
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: | |
tests: | |
name: Unit and integrations tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go: ["1.13", "1.14", "1.15", "1.16"] | |
steps: | |
- name: Install libpcap dependencies | |
run: sudo apt update && sudo apt install libpcap-dev | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- uses: actions/checkout@v2 | |
- name: Run tests | |
run: | | |
go test -v -p 1 -race -coverprofile=covprofile -covermode=atomic ./... | |
- if: ${{ matrix.go == 1.15 }} | |
name: Update coverage | |
uses: shogo82148/actions-goveralls@v1.4.2 | |
with: | |
path-to-profile: covprofile | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install libpcap dependencies | |
run: sudo apt update && sudo apt install libpcap-dev | |
- uses: actions/checkout@v2 | |
- name: Run lint | |
uses: golangci/golangci-lint-action@v2 | |
with: | |
version: v1.32 | |
args: --timeout 5m | |
spellcheck: | |
name: Spellcheck docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: 1.15 | |
- name: Run spellcheck | |
run: | | |
go get github.com/client9/misspell/cmd/misspell | |
misspell -error docs/docs |