Skip to content

feat(react-journey): add react journey app #419

feat(react-journey): add react journey app

feat(react-journey): add react journey app #419

Workflow file for this run

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.1, 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-journey && npm run e2e -- --shard=${{ matrix.shardIndex }}/4)
(cd reactjs-todo-oidc && npm run e2e -- --shard=${{ matrix.shardIndex }}/4)
(cd reactjs-todo-davinci && 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-journey/test-results
./javascript/reactjs-todo-journey/playwright-report
./javascript/reactjs-todo-oidc/test-results
./javascript/reactjs-todo-oidc/playwright-report
./javascript/reactjs-todo-davinci/test-results
./javascript/reactjs-todo-davinci/playwright-report