File tree Expand file tree Collapse file tree 2 files changed +92
-0
lines changed Expand file tree Collapse file tree 2 files changed +92
-0
lines changed Original file line number Diff line number Diff line change 1+ name : autofix.ci
2+ on :
3+ pull_request :
4+ branches :
5+ - main
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ lint :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+ - run : npm i -g --force corepack && corepack enable
17+ - uses : actions/setup-node@v4
18+ with :
19+ node-version : lts/*
20+ cache : pnpm
21+
22+ - name : 📦 Install dependencies
23+ run : pnpm install
24+
25+ - name : 🔎 Lint (code)
26+ run : pnpm lint:fix
27+
28+ - name : ⚙️ Auto-fix
29+ uses : autofix-ci/action@ea32e3a12414e6d3183163c3424a7d7a8631ad84
Original file line number Diff line number Diff line change 1+ name : ci
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ # https://github.com/vitejs/vite/blob/main/.github/workflows/ci.yml
12+ env :
13+ # 7 GiB by default on GitHub, setting to 6 GiB
14+ # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
15+ NODE_OPTIONS : --max-old-space-size=6144
16+
17+ # Remove default permissions of GITHUB_TOKEN for security
18+ # https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
19+ permissions : {}
20+
21+ concurrency :
22+ group : ${{ github.workflow }}-${{ github.event.number || github.sha }}
23+ cancel-in-progress : ${{ github.event_name != 'push' }}
24+
25+ jobs :
26+ lint :
27+ # autofix workflow will be triggered instead for PRs
28+ if : github.event_name == 'push'
29+ runs-on : ubuntu-latest
30+
31+ steps :
32+ - uses : actions/checkout@v4
33+ - run : npm i -g --force corepack && corepack enable
34+ - uses : actions/setup-node@v4
35+ with :
36+ node-version : lts/*
37+ cache : pnpm
38+
39+ - name : 📦 Install dependencies
40+ run : pnpm install
41+
42+ - name : 🔎 Lint
43+ run : pnpm lint
44+
45+ test :
46+ runs-on : ubuntu-latest
47+
48+ steps :
49+ - uses : actions/checkout@v4
50+ - run : npm i -g --force corepack && corepack enable
51+ - uses : actions/setup-node@v4
52+ with :
53+ node-version : lts/*
54+ cache : pnpm
55+
56+ - name : 📦 Install dependencies
57+ run : pnpm install
58+
59+ # - name: 🧪 Run test suite
60+ # run: pnpm test
61+
62+ - name : 🧪 Test types
63+ run : pnpm test:types
You can’t perform that action at this time.
0 commit comments