build: add generate
check in CI
#10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code generation | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: | |
- main | |
- 'renovate/**' | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/pnpm | |
- name: Clone oxc_linter project | |
run: pnpm run clone | |
- 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 |