Fixed ci #60
Workflow file for this run
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: Run Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23' | |
- name: Install dependencies | |
run: | | |
go mod download | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
args: -v | |
skip-cache: false | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.22', '1.23' ] | |
name: Go ${{ matrix.go }} tests | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Install dependencies | |
run: | | |
go get -t -d -v ./... | |
go get github.com/onsi/ginkgo/ginkgo | |
go install github.com/onsi/ginkgo/ginkgo | |
go get golang.org/x/sys/unix | |
go get -u github.com/modocache/gover | |
go install github.com/modocache/gover | |
go get -u github.com/mattn/goveralls | |
go install github.com/mattn/goveralls | |
- name: Run tests | |
run: | | |
ginkgo -r -cover --randomizeAllSpecs --randomizeSuites --failOnPending --trace --race --progress | |
ginkgo -tags=gorillamux -r --randomizeSuites --failOnPending --trace --race | |
ginkgo -tags=gingonic -r --randomizeSuites --failOnPending --trace --race | |
ginkgo -tags=echo -r --randomizeSuites --failOnPending --trace --race | |
rm examples/examples.coverprofile | |
bash scripts/fmtpolice | |
gover | |
goveralls -coverprofile=gover.coverprofile -repotoken gY90SprlNRGmSMl7MgybLreYa05wUXJTU |