Skip to content

chore(deps): update pre-commit hook gitleaks/gitleaks to v8.22.1 (#40) #115

chore(deps): update pre-commit hook gitleaks/gitleaks to v8.22.1 (#40)

chore(deps): update pre-commit hook gitleaks/gitleaks to v8.22.1 (#40) #115

Workflow file for this run

name: ci
on:
push:
branches: [ main ]
paths-ignore:
- '*.md'
- '.editorconfig'
pull_request:
paths-ignore:
- '*.md'
- '.editorconfig'
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
test:
name: Test / Go ${{ matrix.go }} on ${{ matrix.os }}
strategy:
matrix:
go: ["1.22"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5
with:
go-version: ${{ matrix.go }}
check-latest: 'true'
- name: Test
run: go test -p 1 -mod=readonly -race ./...
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5
with:
go-version-file: 'go.mod'
check-latest: 'true'
- name: golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6
with:
version: v1.59
godeadcode:
name: golang-deadcode
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: opzkit/godeadcode-action@6306bf65dfdc77ec1b65f7a162920a8925b1594d # v1
with:
go-version-file: 'go.mod'
check-latest: 'true'