-
-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (28 loc) · 928 Bytes
/
ci-lint.yml
File metadata and controls
34 lines (28 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
permissions:
contents: read
name: Static code analysis
on:
workflow_call:
# Make this a reusable workflow, no value needed
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
env:
TURBO_TELEMETRY_DISABLED: 1
jobs:
lint:
name: Lint
runs-on: 'ubuntu-latest'
steps:
- name: 👷 Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: 🛠️ Setup workspace
uses: ./.github/actions/setup-workspace
with:
node-version: '20'
- name: 📃 Run the lint
run: pnpm run style:fix
shell: bash
- name: ✅ Check status
run: if [[ $(git status --short | grep -c -v vscode-webdriverio-build.zip) -ne 0 ]]; then STATUS=$(git status --verbose); printf "%s" "$STATUS"; git diff | cat; exit 1; fi
shell: bash