Skip to content

Lint, Test and Build #768

Lint, Test and Build

Lint, Test and Build #768

Workflow file for this run

name: TypeScript Continuous Integration
run-name: Lint, Test and Build
on:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
eslint:
name: "Linting"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Corepack enable
shell: bash
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- run: pnpm i
- run: pnpm lint
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Corepack enable
shell: bash
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- run: pnpm i
- run: pnpm build
tests:
name: "Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Corepack enable
shell: bash
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- run: pnpm i
- run: npx playwright install
# xvfb-run needed to run virtual X-server for browser in CI context
- run: xvfb-run pnpm test