chore(deps): lock file maintenance #8337
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: PR | |
on: | |
pull_request: | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
check-code-generation: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
name: 'Check Code Generation: node-22, ubuntu-latest' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | |
- name: Set node version to 22 | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
- name: Install deps | |
run: pnpm install | |
env: | |
CYPRESS_INSTALL_BINARY: 0 | |
- name: Generate code | |
id: generate | |
run: | | |
pnpm run generate:locales | |
pnpm run generate:api-docs | |
pnpm run build | |
pnpm run test -u | |
continue-on-error: true | |
env: | |
CI_PREFLIGHT: true | |
- name: Check diff | |
id: diff | |
run: | | |
git add . | |
git diff --cached --name-only | sed -E 's/^(.*)$/::error file=\1,title=Diff detected::Please run `pnpm run preflight` and commit the changes./' | |
git diff --cached --name-only --exit-code | |
continue-on-error: true | |
- name: Status | |
if: ${{ steps.generate.outcome == 'failure' || steps.diff.outcome == 'failure' }} | |
run: exit 1 |