feat(login-widget): react sample app for login widget #404
Workflow file for this run
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: 'JS Continuous Integration' | |
| on: | |
| pull_request: | |
| paths: | |
| - 'javascript/**/*' | |
| jobs: | |
| pr: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| shardIndex: [1, 2, 3, 4] # Split tests into 4 shards | |
| node: [18.19.0, 20.11.1] | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| working-directory: ./javascript | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - uses: actions/cache@v4 | |
| id: cache | |
| with: | |
| path: | | |
| node_modules | |
| key: ${{ runner.os }}-npm-${{matrix.node}}-${{ hashFiles('package-lock.json') }} | |
| - run: npm ci | |
| working-directory: ./javascript | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| - name: Lint | |
| run: npm run lint | |
| - run: npx playwright install | |
| - name: E2E Tests - Shard ${{ matrix.shardIndex }} of 4 | |
| run: | | |
| cd reactjs-todo && npm run e2e -- --shard=${{ matrix.shardIndex }}/4 | |
| cd ../reactjs-todo-davinci && npm run e2e -- --shard=${{ matrix.shardIndex }}/4 | |
| cd ../angular-todo && npm run e2e -- --shard=${{ matrix.shardIndex }}/4 | |
| cd ../central-login-oidc-client && npm run e2e -- --shard=${{ matrix.shardIndex }}/4 | |
| env: | |
| REST_OAUTH_SECRET: ${{ secrets.REST_OAUTH_SECRET }} | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: Playwright Results - ${{ runner.os }} - ${{ matrix.node }} - Shard ${{ matrix.shardIndex }} - ${{ github.run_attempt }} | |
| path: | | |
| ./javascript/reactjs-todo/test-results | |
| ./javascript/reactjs-todo/playwright-report | |
| ./javascript/angular-todo/test-results | |
| ./javascript/angular-todo/playwright-report | |
| ./javascript/reactjs-todo-davinci/test-results | |
| ./javascript/reactjs-todo-davinci/playwright-report | |
| ./javascript/central-login-oidc-client/test-results | |
| ./javascript/central-login-oidc-client/playwright-report |