1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-26 07:55:21 -04:00
Jake Jarvis 5bb2ff0eb3
switch to ESM imports (drops node 10.x support)
also download assets to a temp dir instead of ./vendor
2021-08-31 11:56:33 -04:00

43 lines
951 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
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 --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