Skip to content

Commit

Permalink
validate sitemap in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoow committed Mar 8, 2025
1 parent cf9d50a commit 4872ea5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,30 @@ jobs:
run: pnpm dlx @gravityci/cli "dist/**/!(*.js.map)"
env:
GRAVITY_TOKEN: ${{ secrets.GRAVITY_TOKEN }}

sitemap:
name: 'Validate sitemap'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"

- name: Install xmllint
run: sudo apt-get -y install libxml2-utils

- uses: pnpm/action-setup@v4
name: Install pnpm

- name: install dependencies
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: build
run: pnpm build

- name: Validate sitemap
run: xmllint --noout dist/sitemap.xml

0 comments on commit 4872ea5

Please sign in to comment.