diff --git a/.github/workflows/a11y.yml b/.github/workflows/a11y.yml index 0c6a049..49866c3 100644 --- a/.github/workflows/a11y.yml +++ b/.github/workflows/a11y.yml @@ -20,7 +20,10 @@ jobs: run: npm install - name: Run server in background - run: npm run serve-bg + run: hugo serve & - - name: Run pa11y-ci + - name: Run pa11y-ci on homepage + run: npm run pa11y-ci:homepage + + - name: Run pa11y-ci on sitemap run: npm run pa11y-ci:sitemap diff --git a/.github/workflows/package.json b/package.json similarity index 55% rename from .github/workflows/package.json rename to package.json index 3da9be6..4804994 100644 --- a/.github/workflows/package.json +++ b/package.json @@ -1,7 +1,9 @@ { "scripts": { + "build": "hugo", "serve-bg": "hugo serve &", - "pa11y-ci:sitemap": "pa11y-ci --sitemap http://localhost:1313/sitemap.xml --sitemap-exclude \"/*.pdf\"" + "pa11y-ci:homepage": "pa11y-ci --sitemap http://localhost:1313", + "pa11y-ci:sitemap": "pa11y-ci --sitemap http://localhost:1313/en/sitemap.xml --sitemap-exclude \"/*.pdf\"" }, "devDependencies": { "pa11y-ci": "^2.4.0"