Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 #236
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: | |
pull_request: | |
branches: | |
- '*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.0 | |
- name: Set up Go | |
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 | |
- name: Check go.mod | |
run: go mod tidy && git diff --exit-code | |
- name: Build | |
run: go build ./cmd/... ./pkg/... | |
- name: Test | |
run: go test ./... | |
golangci-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.0 | |
- name: Check code format | |
run: | | |
diff=$(gofmt -s -d cmd pkg *.go) | |
if [[ -n "${diff}" ]]; then echo "${diff}"; exit 1; fi | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3.4.0 | |
required: | |
needs: [build, golangci-lint] | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "Required jobs success!" |