mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-05-31 11:42:30 +00:00
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.0.1 to 6.1.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](a4f60bb28d...aaa42aa062
)
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
56 lines
1.8 KiB
YAML
56 lines
1.8 KiB
YAML
---
|
|
name: Tests
|
|
on: [push, pull_request]
|
|
permissions: read-all
|
|
jobs:
|
|
test-windows:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target:
|
|
- windows-amd64-unit-test-4-cpu
|
|
# FIXME(fuweid):
|
|
#
|
|
# The windows will throws the following error when enable race.
|
|
# We skip it until we have solution.
|
|
#
|
|
# ThreadSanitizer failed to allocate 0x000200000000 (8589934592) bytes at 0x0400c0000000 (error code: 1455)
|
|
#
|
|
# - windows-amd64-unit-test-4-cpu-race
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
- id: goversion
|
|
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
|
|
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
|
with:
|
|
go-version: ${{ steps.goversion.outputs.goversion }}
|
|
- run: make fmt
|
|
- env:
|
|
TARGET: ${{ matrix.target }}
|
|
run: |
|
|
case "${TARGET}" in
|
|
windows-amd64-unit-test-4-cpu)
|
|
CPU=4 make test
|
|
;;
|
|
*)
|
|
echo "Failed to find target"
|
|
exit 1
|
|
;;
|
|
esac
|
|
shell: bash
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
|
|
|
|
coverage:
|
|
needs: ["test-windows"]
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
- id: goversion
|
|
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
|
|
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
|
with:
|
|
go-version: ${{ steps.goversion.outputs.goversion }}
|
|
- run: make coverage
|