Skip to content

Commit

Permalink
Update pre-commit to support golang 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
HumairAK committed Jan 2, 2024
1 parent 30209d8 commit 7eb7d7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
precommit:
runs-on: ubuntu-latest
container:
image: quay.io/opendatahub/pre-commit-go-toolchain:v0.2
image: quay.io/opendatahub/pre-commit-go-toolchain:v0.3
env:
XDG_CACHE_HOME: /cache
GOCACHE: /cache/go-build
Expand All @@ -20,5 +20,7 @@ jobs:
with:
path: /cache
key: ${{ runner.os }}-cache-${{ hashFiles('**/go.sum', '.pre-commit-config.yaml') }}
- name: Mark source directory as safe
run: git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Run pre-commit checks
run: pre-commit run --all-files

0 comments on commit 7eb7d7e

Please sign in to comment.