Skip to content

chore: update build scripts and CI configuration for app-e2e integration #299

chore: update build scripts and CI configuration for app-e2e integration

chore: update build scripts and CI configuration for app-e2e integration #299

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 52, Col: 14): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PLAYWRIGHT_IMAGE
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
id-token: write
# Keep in sync with @playwright/test in packages/app-e2e (see package-lock.json).
env:
PLAYWRIGHT_IMAGE: mcr.microsoft.com/playwright:v1.59.1-noble
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run type check
run: npm run type-check
- name: Run tests with coverage
run: npm run test:coverage -w @eclipse-docks/core
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v7
with:
use_oidc: true
files: packages/core/coverage/lcov.info
disable_search: true
fail_ci_if_error: true
e2e:
runs-on: ubuntu-latest
container:
image: ${{ env.PLAYWRIGHT_IMAGE }}
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run E2E tests
run: npm run test:e2e
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1