Evgenii Stratonikov
59a8979354
Some checks failed
DCO action / DCO (pull_request) Failing after 8m52s
Vulncheck / Vulncheck (pull_request) Successful in 16m34s
Build / Build Components (1.21) (pull_request) Successful in 17m26s
Build / Build Components (1.22) (pull_request) Successful in 20m39s
Tests and linters / gopls check (pull_request) Successful in 20m34s
Tests and linters / Tests (1.21) (pull_request) Failing after 25m22s
Tests and linters / Tests (1.22) (pull_request) Failing after 26m28s
Tests and linters / Tests with -race (pull_request) Failing after 30m5s
Tests and linters / Staticcheck (pull_request) Successful in 31m43s
Tests and linters / Lint (pull_request) Successful in 32m42s
Pre-commit hooks / Pre-commit (pull_request) Successful in 48m38s
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
28 lines
917 B
YAML
28 lines
917 B
YAML
name: Pre-commit hooks
|
|
on: [pull_request]
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
|
|
|
|
jobs:
|
|
precommit:
|
|
name: Pre-commit
|
|
env:
|
|
# Skip pre-commit hooks which are executed by other actions.
|
|
SKIP: make-lint,go-staticcheck-repo-mod,go-unit-tests,gofumpt
|
|
runs-on: ubuntu-22.04
|
|
# If we use actions/setup-python from either Github or Gitea,
|
|
# the line above fails with a cryptic error about not being able to found python.
|
|
# So install everything manually.
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.22
|
|
- name: Set up Python
|
|
run: |
|
|
apt update
|
|
apt install -y pre-commit
|
|
- name: Run pre-commit
|
|
run: pre-commit run --color=always --hook-stage manual --all-files
|