File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,6 @@ name: pre-commit
4
4
on :
5
5
pull_request :
6
6
7
- env :
8
- CARGO_TERM_COLOR : always
9
- RUST_TOOLCHAIN_VERSION : " 1.80.1"
10
- HADOLINT_VERSION : " v1.17.6"
11
-
12
7
jobs :
13
8
pre-commit :
14
9
runs-on : ubuntu-latest
19
14
- uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
20
15
with :
21
16
python-version : ' 3.12'
22
- - uses : dtolnay/rust-toolchain@master
23
- with :
24
- toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
25
- components : rustfmt,clippy
26
- - name : Setup Hadolint
27
- shell : bash
28
- run : |
29
- set -euo pipefail
30
-
31
- LOCATION_DIR="$HOME/.local/bin"
32
- LOCATION_BIN="$LOCATION_DIR/hadolint"
33
-
34
- SYSTEM=$(uname -s)
35
- ARCH=$(uname -m)
36
-
37
- mkdir -p "$LOCATION_DIR"
38
- curl -sL -o "${LOCATION_BIN}" "https://github.com/hadolint/hadolint/releases/download/${{ env.HADOLINT_VERSION }}/hadolint-$SYSTEM-$ARCH"
39
- chmod 700 "${LOCATION_BIN}"
40
-
41
- echo "$LOCATION_DIR" >> "$GITHUB_PATH"
42
17
- uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
43
18
with :
44
19
extra_args : " --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}"
Original file line number Diff line number Diff line change 49
49
rev : 62dc61a45fc95efe8c800af7a557ab0b9165d63b # 1.7.1
50
50
hooks :
51
51
- id : actionlint
52
-
53
- - repo : https://github.com/hadolint/hadolint
54
- rev : b3555ba9c2bfd9401e79f2f0da68dd1ae38e10c7 # 2.12.0
55
- hooks :
56
- - id : hadolint
You can’t perform that action at this time.
0 commit comments