ci: add quickstart test to workflows
see #937
Signed-off-by: Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
| New file |
| | |
| | | name: Quickstart test |
| | | |
| | | on: |
| | | push: |
| | | branches: |
| | | - main |
| | | - master |
| | | - develop |
| | | - "**" |
| | | pull_request: |
| | | |
| | | permissions: |
| | | contents: read |
| | | |
| | | jobs: |
| | | quickstart: |
| | | name: Hugo quickstart |
| | | runs-on: ubuntu-latest |
| | | |
| | | steps: |
| | | - name: Check out repository |
| | | uses: actions/checkout@v4 |
| | | with: |
| | | submodules: false |
| | | |
| | | - name: Set up Node.js |
| | | uses: actions/setup-node@v4 |
| | | with: |
| | | node-version: "24" |
| | | |
| | | - name: Set up Hugo |
| | | uses: peaceiris/actions-hugo@v3 |
| | | with: |
| | | hugo-version: "latest" |
| | | extended: true |
| | | |
| | | - name: Show tool versions |
| | | run: | |
| | | node --version |
| | | npm --version |
| | | git --version |
| | | hugo version |
| | | |
| | | - name: Install dependencies |
| | | run: npm ci |
| | | |
| | | - name: Run quickstart test |
| | | run: | |
| | | node scripts/test-hugo-quickstart.ts |