Skip to content

feat(actions): add zizmor and actionlint (#636) #1058

feat(actions): add zizmor and actionlint (#636)

feat(actions): add zizmor and actionlint (#636) #1058

Workflow file for this run

name: Linting
on:
push:
branches:
- main
pull_request:
permissions: {}
jobs:
lint-code:
name: Lint Code [biomejs]
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
- name: Setup Node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- run: pnpm install
- run: pnpm lint:check
lint-actions:
name: Lint GitHub Actions [actionlint]
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
sparse-checkout: .github/
- name: GitHub Actions linter
uses: docker://rhysd/actionlint:1.7.12@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667