Skip to content

fix: ensure that common folder files are published so types are not missing #705

fix: ensure that common folder files are published so types are not missing

fix: ensure that common folder files are published so types are not missing #705

Workflow file for this run

name: CI
permissions:
contents: read
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install Parent Folder
run: npm install
- name: Run linting
run: npm run lint
unused:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install Parent Folder
run: npm install
- name: Run unused code checking
run: npm run unused
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install Parent Folder
run: npm install
- name: Ensure no package-lock.json changes
run: git diff --exit-code
- name: Build
run: npm run build
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install Parent Folder
run: npm install
- name: Test
run: npm run test
env:
CI: true
e2e-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install parent directory
run: npm install
- name: Get installed Playwright version
id: playwright-version
working-directory: ./e2e
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV
- name: Cache playwright binaries
uses: actions/cache@v4
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- name: Install e2e test
working-directory: ./e2e
run: npm install
- run: npx playwright install --with-deps
working-directory: ./e2e
if: steps.playwright-cache.outputs.cache-hit != 'true'
- run: npx playwright install-deps
working-directory: ./e2e
if: steps.playwright-cache.outputs.cache-hit != 'true'
- name: Run Playwright tests
working-directory: ./e2e
run: npm run test