返回 slidev
autofix.yml
根目录 / .github / workflows / autofix.yml
1 name: autofix.ci
2
3 on:
4 push:
5 branches:
6 - main
7 pull_request:
8 branches:
9 - main
10 permissions:
11 contents: read
12
13 jobs:
14 autofix:
15 runs-on: ubuntu-latest
16 timeout-minutes: 10
17
18 steps:
19 - uses: actions/checkout@v6
20
21 - name: Setup pnpm
22 uses: pnpm/action-setup@v4
23
24 - name: Use Node.js lts/*
25 uses: actions/setup-node@v6
26 with:
27 node-version: lts/*
28 cache: pnpm
29
30 - name: Setup
31 run: npm i -g @antfu/ni
32
33 - name: Install
34 run: nci
35 env:
36 CYPRESS_INSTALL_BINARY: 0
37
38 - name: Lint
39 run: nr lint --fix
40
41 - uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
42
42 lines YAML