2023-09-23 21:47:50 +02:00
|
|
|
name: Pre-Commit
|
2023-09-23 21:46:16 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
pre-commit:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-python@v3
|
2024-02-11 20:54:27 +01:00
|
|
|
- uses: actions/setup-go@v4
|
2023-09-23 22:03:54 +02:00
|
|
|
with:
|
2023-11-09 03:57:42 +01:00
|
|
|
go-version: 1.21
|
2023-09-23 22:03:54 +02:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
|
|
|
|
go install honnef.co/go/tools/cmd/staticcheck@latest
|
|
|
|
go install github.com/kisielk/errcheck@latest
|
2023-09-23 21:46:16 +02:00
|
|
|
- uses: pre-commit/action@v3.0.0
|
|
|
|
with:
|
|
|
|
extra_args: --all-files
|
|
|
|
|