mirror of
https://github.com/Ryujinx/Ryujinx-Ldn-Website.git
synced 2025-01-11 02:45:32 +00:00
52 lines
945 B
YAML
52 lines
945 B
YAML
|
on:
|
||
|
pull_request:
|
||
|
|
||
|
permissions:
|
||
|
contents: read
|
||
|
checks: write
|
||
|
|
||
|
concurrency:
|
||
|
group: check-${{ github.ref_name }}
|
||
|
cancel-in-progress: true
|
||
|
|
||
|
jobs:
|
||
|
lint:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
|
||
|
- uses: pnpm/action-setup@v2
|
||
|
with:
|
||
|
version: latest
|
||
|
|
||
|
- uses: actions/setup-node@v3
|
||
|
with:
|
||
|
node-version-file: ".nvmrc"
|
||
|
cache: "pnpm"
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: pnpm install --frozen-lockfile
|
||
|
|
||
|
- name: Run ESLint
|
||
|
run: node_modules/.bin/eslint .
|
||
|
|
||
|
format:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
|
||
|
- uses: pnpm/action-setup@v2
|
||
|
with:
|
||
|
version: latest
|
||
|
|
||
|
- uses: actions/setup-node@v3
|
||
|
with:
|
||
|
node-version-file: ".nvmrc"
|
||
|
cache: "pnpm"
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: pnpm install --frozen-lockfile
|
||
|
|
||
|
- name: Run Prettier
|
||
|
run: node_modules/.bin/prettier -c .
|