mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-04-26 14:38:28 -04:00
44 lines
981 B
YAML
44 lines
981 B
YAML
name: Run tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- macos-latest
|
|
- windows-latest
|
|
node:
|
|
- 16
|
|
- 14
|
|
- 12
|
|
- 10
|
|
fail-fast: false
|
|
runs-on: ${{ matrix.os }}
|
|
name: Node ${{ matrix.node }} on ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
- name: yarn install and test
|
|
run: |
|
|
yarn install --ignore-engines --frozen-lockfile
|
|
yarn audit
|
|
yarn test
|
|
- name: Checkout gohugoio/hugoBasicExample
|
|
uses: actions/checkout@master
|
|
with:
|
|
repository: gohugoio/hugoBasicExample
|
|
path: site/
|
|
fetch-depth: 1
|
|
- name: Build example site
|
|
run: node cli.js --source site/ --minify --verbose
|