Skip to content

Commit c0e957d

Browse files
committed
bump checkbashisms and shfmt to Linuxbrew
1 parent 9144208 commit c0e957d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ jobs:
4646
steps:
4747
- name: Install tools
4848
run: |
49-
HOMEBREW_NO_AUTO_UPDATE=1 /home/linuxbrew/.linuxbrew/bin/brew install shellcheck
50-
sudo apt-get update
51-
sudo apt-get install -y devscripts shfmt
49+
HOMEBREW_NO_AUTO_UPDATE=1 /home/linuxbrew/.linuxbrew/bin/brew install shellcheck checkbashisms shfmt
5250
5351
- name: Checkout repository
5452
uses: actions/checkout@v5
@@ -62,10 +60,14 @@ jobs:
6260
shellcheck $(grep -l '^#!/bin/sh' $(git ls-files))
6361
6462
- name: Run checkbashisms
65-
run: checkbashisms $(grep -l '^#!/bin/sh' $(git ls-files))
63+
run: |
64+
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
65+
checkbashisms $(grep -l '^#!/bin/sh' $(git ls-files))
6666
6767
- name: Run shfmt
68-
run: shfmt --func-next-line --space-redirects --case-indent --binary-next-line --indent 4 --posix --diff .
68+
run: |
69+
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
70+
shfmt --func-next-line --space-redirects --case-indent --binary-next-line --indent 4 --posix --diff .
6971
7072
debian:
7173
name: debian

0 commit comments

Comments
 (0)