mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-04-26 14:38:28 -04:00
47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
name: Run tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- macos-latest
|
|
- windows-latest
|
|
node:
|
|
- 20
|
|
- 18
|
|
- 16
|
|
- 14
|
|
fail-fast: false
|
|
runs-on: ${{ matrix.os }}
|
|
name: Node ${{ matrix.node }} on ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
- run: yarn install --frozen-lockfile
|
|
env:
|
|
DEBUG: careful-downloader
|
|
DEBUG_HIDE_DATE: 1
|
|
DEBUG_COLORS: 0
|
|
- run: yarn audit
|
|
continue-on-error: true
|
|
- run: yarn test
|
|
- name: Checkout gohugoio/hugoDocs
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: gohugoio/hugoDocs
|
|
path: docs/
|
|
fetch-depth: 1
|
|
- name: Build docs
|
|
run: node lib/cli.js --source docs/ --minify --enableGitInfo --logLevel info
|