diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 3287587a8f0..8e533adde69 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -35,11 +35,13 @@ jobs: 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 - name: Check diff id: diff @@ -56,8 +58,8 @@ jobs: with: script: | const script = require('${{ github.workspace }}/.github/workflows/commentCodeGeneration.js') - await script(github, context, ${{ steps.diff.outcome == 'success' }}) + await script(github, context, ${{ steps.generate.outcome == 'success' && steps.diff.outcome == 'success' }}) - name: Status - if: ${{ steps.diff.outcome == 'failure' }} + if: ${{ steps.generate.outcome == 'failure' || steps.diff.outcome == 'failure' }} run: exit 1