Skip to content

feat: Redesigning of the home page #1169

feat: Redesigning of the home page

feat: Redesigning of the home page #1169

Workflow file for this run

name: CI
on:
push:
branches:
- main
- websiteRedesign
pull_request:
branches:
- main
# Long-lived redesign branch.
- websiteRedesign
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
- name: Setup pnpm
uses: step-security/action-setup@7734f5522f614a4cf2820ad19aa26717c7abfd96 # v6.0.9
with:
version: 10
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check formatting (Prettier)
run: pnpm format:check
- name: Run lint check
run: pnpm lint
- name: Run unit tests
run: pnpm test
- name: Build Next.js application
run: pnpm build
env:
NEXT_TELEMETRY_DISABLED: 1
# Runs after the build so the browser tests exercise the production CSS,
# and so `pnpm start` finds .next already in place.
- name: Install Playwright browser
run: pnpm exec playwright install --with-deps chromium
- name: Run browser tests
run: pnpm test:e2e
env:
NEXT_TELEMETRY_DISABLED: 1