mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-29 03:35:09 +01:00
26 lines
515 B
YAML
26 lines
515 B
YAML
name: Pre-Commit
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v3
|
|
- uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.21
|
|
- name: Install dependencies
|
|
run: |
|
|
|
|
go install honnef.co/go/tools/cmd/staticcheck@latest
|
|
go install github.com/kisielk/errcheck@latest
|
|
- uses: pre-commit/action@v3.0.0
|
|
with:
|
|
extra_args: --all-files
|
|
|