Skip to content

Commit f37af9e

Browse files
committed
github: Switch to shared workflows
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 8772641 commit f37af9e

1 file changed

Lines changed: 3 additions & 24 deletions

File tree

.github/workflows/lint.yml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,6 @@ name: Lint checks
33
on: [push, pull_request]
44
jobs:
55
shellcheck:
6-
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/checkout@v2
9-
- name: shellcheck
10-
uses: bewuethr/shellcheck-action@v2
11-
shfmt-check:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-go@v2
16-
with:
17-
go-version: '1.14.2'
18-
- uses: actions/cache@v2
19-
with:
20-
path: ~/go/pkg/mod
21-
key: ${{ runner.os }}-go
22-
restore-keys: |
23-
${{ runner.os }}-go-
24-
- name: Run shfmt
25-
run: |
26-
GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt
27-
while read -r f; do
28-
PATH=$HOME/go/bin:$PATH shfmt -ci -d -i 4 $f
29-
done < <(find . -type f -name "*.sh")
6+
uses: ClangBuiltLinux/actions-workflows/.github/workflows/shellcheck.yml@main
7+
shfmt:
8+
uses: ClangBuiltLinux/actions-workflows/.github/workflows/shfmt.yml@main

0 commit comments

Comments
 (0)