Repository navigation
landing: ndarray v0.44.0 #117
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: the site builds | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| # Hugo resolves the landingkit module (hugo.toml [module]) with the go | |
| # command, at the version go.mod pins. | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version-file: go.mod | |
| cache: false | |
| - uses: peaceiris/actions-hugo@v3 | |
| with: | |
| hugo-version: "0.169.0" | |
| extended: true | |
| - run: hugo --minify | |
| # The kit's own check on the built page: the hero's button row must be the | |
| # kit's cta.html (docs primary, try red, in the kit's order), and nothing | |
| # the mantra strip says may be repeated beside it. | |
| - name: landingkit check | |
| env: | |
| GOWORK: "off" | |
| run: go run github.com/go-fleettools/landingkit/cmd/landingkit check public | |
| # A page that builds and says nothing is a page nobody notices is empty. | |
| - name: every repository is on it | |
| run: | | |
| for repo in ndarray docs brand; do | |
| grep -q "go-ndarray/$repo" public/index.html \ | |
| || { echo "::error::$repo is not on the page"; exit 1; } | |
| done | |
| echo "the page names every repository this org has" | |
| - name: the playground page is built and linked | |
| run: | | |
| test -f public/playground/index.html || { echo "::error::no /playground/ page"; exit 1; } | |
| grep -q 'id=nd-canvas' public/playground/index.html || { echo "::error::the playground page has no canvas"; exit 1; } | |
| grep -qE 'href="?/playground/"?' public/index.html || { echo "::error::the landing does not link to the playground"; exit 1; } | |
| echo "the playground page is built, and the landing links to it" |