chore: refactor CI workflows; consolidate E2E tests and add PR check … #560
This file contains hidden or 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: CI Checks [auto] | |
| on: | |
| push: | |
| branches: [main, 'release/**'] | |
| pull_request: | |
| branches: [main, 'release/**'] | |
| workflow_dispatch: | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run checks in parallel | |
| run: | | |
| npm run format:check & | |
| npm run lint & | |
| wait | |
| - name: Build | |
| if: always() | |
| run: npm run build | |
| - name: Test | |
| if: always() | |
| run: npm test | |
| - name: Test example apps | |
| if: always() | |
| uses: ./.github/workflows/test-example-apps.yml | |
| - name: Check commits (PR only) | |
| if: github.event_name == 'pull_request' && always() | |
| run: | | |
| npx commitlint \ | |
| --from ${{ github.event.pull_request.base.sha }} \ | |
| --to ${{ github.event.pull_request.head.sha }} |