Files
awesome-sunshine/.github/workflows/lint.yml
David Lane ae9d9e0666 build: add package.json (#73)
Add a package.json with awesome-lint and a lint script, so the project has a reproducible linting dependency. Update the GitHub Actions workflow to set up Node.js, install dependencies (npm install --ignore-scripts) and run npm run lint instead of npx. Update .gitignore to ignore node_modules and package-lock.json.
2026-02-13 10:22:31 -05:00

30 lines
601 B
YAML

---
name: Lint
permissions:
contents: read
on:
pull_request:
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: 'latest'
- name: Install dependencies
run: npm install --ignore-scripts
- name: Lint
run: npm run lint