Skip to content

build(deps): bump docker/setup-buildx-action from 2.8.0 to 2.9.0 (#543) #1676

build(deps): bump docker/setup-buildx-action from 2.8.0 to 2.9.0 (#543)

build(deps): bump docker/setup-buildx-action from 2.8.0 to 2.9.0 (#543) #1676

Workflow file for this run

name: Go
on:
push:
branches: ["main"]
pull_request:
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: 🛡️ Harden Runner
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1
with:
disable-sudo: true
policy: test
- name: 🚚 Check out the repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
persist-credentials: false
- name: 🏗️ Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: stable
- name: 🧪 Run `go test`
run: |
go test -coverpkg=$(go list ./... | grep -v -e 'internal/mocks' | tr '\n' ',') -coverprofile=coverage.txt -race -v ./...
- name: ☂️ Report coverage rates to Codecov
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # 3.1.4
with:
file: ./coverage.txt
flags: unittests
fuzz:
name: Fuzz
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
concurrency:
group: ${{ github.workflow }}-fuzz-${{ github.ref }}
cancel-in-progress: true
env:
FUZZTIME: "60s"
steps:
- name: 🛡️ Harden Runner
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1
with:
disable-sudo: true
policy: test.fuzz
- name: 🚚 Check out the repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
persist-credentials: false
- name: 🏗️ Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: stable
- name: 🧪 Run `go test`
run: |
go test ./test/fuzzer -fuzztime ${{ env.FUZZTIME }} -fuzz FuzzParseList
go test ./test/fuzzer -fuzztime ${{ env.FUZZTIME }} -fuzz FuzzParseExpression
regenerate:
name: Regenerate
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: 🛡️ Harden Runner
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1
with:
disable-sudo: true
policy: test.regenerate
- name: 🚚 Check out the repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
persist-credentials: false
- name: 🏗️ Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: stable
- name: 🎭 Install GoMock
run: go install github.com/golang/mock/[email protected]
- name: 🧪 Run `go mod tidy`
run: |
go mod tidy
- name: 🧪 Run `go generate`
run: |
rm ./internal/mocks -rf
go generate ./...
- name: 🔍 Check if any files are changed
run: |
if ! git diff --quiet; then
echo "Please run 'go gonerate ./...' to regenerate files"
exit 1
fi