fixup!: use apk for lint scripts
This commit is contained in:
22
.github/workflows/scripts.yaml
vendored
22
.github/workflows/scripts.yaml
vendored
@ -51,6 +51,7 @@ jobs:
|
||||
|
||||
- name: Run script unit tests
|
||||
run: ./ci/dev/test-scripts.sh
|
||||
|
||||
lint:
|
||||
name: Lint shell files
|
||||
runs-on: ubuntu-latest
|
||||
@ -59,23 +60,8 @@ jobs:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Node.js v16
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16"
|
||||
|
||||
- name: Fetch dependencies from cache
|
||||
id: cache-node-modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: "**/node_modules"
|
||||
key: yarn-build-${{ hashFiles('**yarn.lock') }}
|
||||
restore-keys: |
|
||||
yarn-build-
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
||||
run: SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile
|
||||
- name: Install lint utilities
|
||||
run: apk add shellcheck
|
||||
|
||||
- name: Lint shell files
|
||||
run: yarn lint:sh
|
||||
run: ./ci/dev/lint-scripts.sh
|
||||
|
Reference in New Issue
Block a user