Skip to content

[test] Add e2e testing #508

[test] Add e2e testing

[test] Add e2e testing #508

Workflow file for this run

name: Continuous Integration
on: pull_request
jobs:
unit-test:
strategy:
fail-fast: false
matrix:
node:
- 18
- 20
name: Unit tests w/ Node.js ${{matrix.node}}.x
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node ${{matrix.node}}.x
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}.x
- run: yarn install
- run: yarn build:all
- run: yarn test
e2e:
timeout-minutes: 20
name: End to End
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: '18.x'
- run: yarn install
- run: yarn build:all
- run: yarn workspace @dd/tests playwright install --with-deps
- run: yarn workspace @dd/tests e2e
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 7
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: '18.x'
- run: yarn install
- run: yarn build:all
- run: yarn typecheck:all
- run: yarn cli integrity
- run: git diff --exit-code && git diff --cached --exit-code || (echo "Please run 'yarn cli integrity' and commit the result." && exit 1)