-
-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (36 loc) · 962 Bytes
/
generate.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
41
42
43
44
name: Code generation
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths:
- 'pnpm-lock.yaml'
- 'scripts/**'
- '.github/workflows/generate.yml'
push:
branches:
- main
- 'renovate/**'
paths:
- 'pnpm-lock.yaml'
- 'scripts/**'
- '.github/workflows/generate.yml'
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false
- uses: ./.github/actions/pnpm
- name: Clone oxc_linter project
run: pnpm run clone
- name: Remove current generated code
run: rm -r ./src/generated/
- name: Generate from source code
run: pnpm run generate
- name: Format generated code
run: pnpm run format
- name: Check for git diff
run: git diff --exit-code