File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Pre-commit
2+ on :
3+ push :
4+ branches :
5+ - ' **'
6+ tags-ignore :
7+ - ' v*'
8+ pull_request :
9+ workflow_dispatch :
10+
11+ jobs :
12+ precommit :
13+ runs-on : ubuntu-latest
14+ container :
15+ image : quay.io/opendatahub/pre-commit-go-toolchain:v0.2 # https://github.com/opendatahub-io/data-science-pipelines-operator/blob/main/.github
16+ env :
17+ XDG_CACHE_HOME : /cache
18+ GOCACHE : /cache/go-build
19+ GOMODCACHE : /cache/go-mod
20+ PRE_COMMIT_HOME : /cache/pre-commit
21+ volumes :
22+ - /cache
23+ steps :
24+ - uses : actions/checkout@v2
25+
26+ - name : Activate cache
27+ uses : actions/cache@v2
28+ with :
29+ path : /cache
30+ key : ${{ runner.os }}-cache-${{ hashFiles('**/go.sum', '.pre-commit-config.yaml') }}
31+
32+ - name : Run pre-commit checks
33+ run : pre-commit run --all-files
You can’t perform that action at this time.
0 commit comments