Skip to content

[CI] Add smoke test via GitHub workflow #12

[CI] Add smoke test via GitHub workflow

[CI] Add smoke test via GitHub workflow #12

Workflow file for this run

name: smoke
on:
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: package.json
- run: tools/install-hugo.sh
shell: bash
- name: Make site
env:
REPO: ${{ github.event.pull_request.head.repo.full_name }}
BRANCH: ${{ github.head_ref }}
run: |
mkdir tmp && cd tmp && set -x
../tools/make-site.sh -p $REPO -v $BRANCH
shell: bash