Skip to content

Updates

Updates #40

Workflow file for this run

name: "Lint"
on:
workflow_dispatch:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ !contains(github.event.head_commit.message, '#nolint') }}
steps:
- name: "Checkout"
uses: actions/checkout@v6
- name: "Setup Node 24"
uses: actions/setup-node@v6
with:
node-version: 24
- name: "Install"
id: install
run: |
npm ci
- name: "eslint"
if: ${{ !cancelled() }}
run: |
npm run lint
- name: "prettier"
if: ${{ !cancelled() }}
run: |
npm run prettier:check
- name: "yamllint"
if: ${{ !cancelled() }}
env:
CONFIG: .github/yamllint.yaml
run: |
echo "::group::List Files"
yamllint -c "${{ env.CONFIG }}" --list-files .
echo "::endgroup::"
yamllint -c "${{ env.CONFIG }}" .
- name: "actionlint"
if: ${{ !cancelled() }}
uses: cssnr/actionlint-action@v1
with:
shellcheck_opts: -e SC2129