mirror of
https://github.com/LizardByte/awesome-sunshine.git
synced 2026-04-30 01:59:19 -05:00
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.
30 lines
601 B
YAML
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
|