Skip to content

chore(deps): update dependencies, pnpm (#4705) #951

chore(deps): update dependencies, pnpm (#4705)

chore(deps): update dependencies, pnpm (#4705) #951

Workflow file for this run

name: Node CI (push)
on:
push:
branches:
- main
paths-ignore:
- "**"
- "!**.js"
- "!**.cjs"
- "!**.json"
- "!**.css"
- "!**.html"
- "!.github/workflows/**"
env:
PUPPETEER_SKIP_DOWNLOAD: 1
PUPPETEER_EXECUTABLE_PATH: /usr/bin/google-chrome
FORCE_COLOR: 1
# See https://github.com/w3c/respec/pull/3306
LC_ALL: en_US.UTF-8
permissions:
contents: read
jobs:
test-headless:
name: Headless Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with: { node-version-file: '.nvmrc', cache: pnpm }
- run: pnpm i --frozen-lockfile
- run: pnpm build:w3c
- run: pnpm test:headless
- name: Calculate size and update on server
run: |
timestamp=$(git show --no-patch --pretty='%cd' --date='format:%s')
npx brrr builds/respec-w3c.js -o builds
file_size=$(stat -c%s "builds/respec-w3c.js")
xfer_file_size=$(stat -c%s "builds/respec-w3c.js.br")
curl -L -X PUT "https://respec.org/respec/size" \
-H "Authorization: $RESPEC_SECRET" \
-s -w "HTTP Response Code: %{http_code}\n" \
-d "size=$file_size" -d "xferSize=$xfer_file_size "\
-d "sha=$GITHUB_SHA" -d "timestamp=$timestamp"
env:
RESPEC_SECRET: ${{ secrets.RESPEC_GH_ACTION_SECRET }}
test-karma:
name: Karma Unit Tests (Chrome)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with: { node-version-file: '.nvmrc', cache: pnpm }
- run: pnpm i --frozen-lockfile
- run: pnpm build:w3c & pnpm build:geonovum
- run: pnpm test
env:
BROWSERS: ChromeHeadless