mirror of
https://github.com/wg-easy/wg-easy.git
synced 2026-04-22 15:27:10 +08:00
dd9da2a067
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 5 to 6. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup/compare/v5...v6) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
69 lines
1.3 KiB
YAML
69 lines
1.3 KiB
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
docs:
|
|
name: Check Docs
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'wg-easy'
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- uses: pnpm/action-setup@v6
|
|
name: Install pnpm
|
|
with:
|
|
run_install: false
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: "lts/krypton"
|
|
check-latest: true
|
|
cache: "pnpm"
|
|
|
|
- name: Check docs formatting
|
|
run: |
|
|
pnpm install
|
|
pnpm format:check:docs
|
|
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
needs: docs
|
|
if: github.repository_owner == 'wg-easy'
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
max-parallel: 3
|
|
matrix:
|
|
command: ["lint", "typecheck", "format:check"]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- uses: pnpm/action-setup@v6
|
|
name: Install pnpm
|
|
with:
|
|
run_install: false
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: "lts/krypton"
|
|
check-latest: true
|
|
cache: "pnpm"
|
|
|
|
- name: pnpm ${{ matrix.command }}
|
|
run: |
|
|
cd src
|
|
pnpm install
|
|
pnpm ${{ matrix.command }}
|