Skip to content

chore: update-package-json-webpack #12

chore: update-package-json-webpack

chore: update-package-json-webpack #12

Workflow file for this run

name: 'Continuous Integration'
on:
- pull_request
jobs:
install:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
node: [18.19.0, 20.11.1]
runs-on: ${{ matrix.os }}
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
if: steps.cache.outputs.cache-hit != 'true'
build-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
node: [18.19.0, 20.11.1]
needs: [install]
runs-on: ${{ matrix.os }}
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
if: steps.cache.outputs.cache-hit != 'true'
- name: Lint
run: npm run lint
- run: npx playwright install
- name: E2E
run: npm run e2e -ws --if-present -- -- shard 1/2
env:
REST_OAUTH_SECRET: ${{ secrets.REST_OAUTH_SECRET }}
- run: npm run e2e -ws --if-present -- -- shard 2/2
env:
REST_OAUTH_SECRET: ${{ secrets.REST_OAUTH_SECRET }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: Playwright Results - ${{ runner.os }} - ${{ matrix.node }} - ${{ github.run_attempt }}
path: |
reactjs-todo/test-results
reactjs-todo/playwright-report
angular-todo/test-results
angular-todo/playwright-report