-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 962 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Typecheck, lint, format, and fix
on:
pull_request:
branches: ["*"]
push:
branches: ["main"]
merge_group:
jobs:
linting:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
defaults:
run:
working-directory: ./my-turborepo
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
cache-dependency-path: ./my-turborepo
- name: Install dependencies
run: pnpm install --fix-lockfile
- name: Typecheck
run: pnpm typecheck
- name: Fix linting issues
run: pnpm lint:fix
- name: Fix formatting issues
run: pnpm format:fix
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5