Skip to content

build(deps): Bump lycheeverse/lychee-action from 1 to 2 in the action… #113

build(deps): Bump lycheeverse/lychee-action from 1 to 2 in the action…

build(deps): Bump lycheeverse/lychee-action from 1 to 2 in the action… #113

Workflow file for this run

name: CI
env:
ASTRO_STUDIO_APP_TOKEN: ${{ secrets.ASTRO_STUDIO_APP_TOKEN }}
on:
push:
branches: main
paths-ignore: ["**/*.md", "**/*.mdx"]
pull_request:
branches: main
paths-ignore: ["**/*.md", "**/*.mdx"]
jobs:
format:
name: Biome
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm i
- name: Check for lint and formatting errors with Biome
run: pnpm check
test:
name: Playwright
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm i
- name: Install Playwright
run: pnpm exec playwright install chromium
- name: Run Playwright tests
run: pnpm test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
html-validate:
name: HTML5 Validation
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm i
- name: Build and validate HTML5
run: pnpm html-validate