Skip to content

Fix Plausible head tag config #12

Fix Plausible head tag config

Fix Plausible head tag config #12

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build:
name: Build and validate
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Build site
run: npm run build
- name: Smoke test built site
run: |
npx --yes serve@14.2.4 build --listen 3000 &
server_pid=$!
trap 'kill "$server_pid"' EXIT
for attempt in {1..30}; do
if curl --fail --silent --show-error http://127.0.0.1:3000/ > /tmp/home.html; then
break
fi
sleep 1
done
test -s /tmp/home.html
grep -q "GraphQL Java" /tmp/home.html
grep -q "https://plausible.io/js/pa-p0EwT1dUPS95Hq8MWvpRd.js" /tmp/home.html
curl --fail --silent --show-error http://127.0.0.1:3000/documentation/getting-started > /tmp/docs.html
grep -q "Getting started" /tmp/docs.html
- name: Audit high-risk dependencies
run: npm audit --omit=dev --audit-level=high