Skip to content

chore: improved index page #2206

chore: improved index page

chore: improved index page #2206

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
env:
FORCE_COLOR: 1
jobs:
quality:
name: Lint & Format
runs-on: ubuntu-latest
steps:
- name: Setup environment
uses: nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
with:
use-version-file: true
pnpm: true
- name: Run linting
run: node --run lint
- name: Check formatting
run: node --run format:check
test:
name: Test & Coverage
runs-on: ubuntu-latest
steps:
- name: Setup environment
uses: nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
with:
use-version-file: true
pnpm: true
- name: Run tests with coverage
run: node --run test:ci
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
files: ./coverage/lcov.info
- name: Upload test results to Codecov
if: always()
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
files: ./junit.xml
report_type: test_results
e2e:
name: E2E Tests
runs-on: ubuntu-latest
steps:
- name: Setup environment
uses: nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
with:
use-version-file: true
pnpm: true
- name: Checkout Node.js source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
repository: nodejs/node
sparse-checkout: doc/api/assert.md
path: node
- name: Build Node.js API docs
run: node packages/cli/bin/cli.mjs generate -t web -i "./node/doc/api/assert.md" -o out --config-file ./e2e/doc-kit.config.mjs
- name: Install Playwright browsers
run: pnpm exec playwright install --with-deps
- name: Run E2E tests
run: node --run test:e2e