mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-04-26 22:48:27 -04:00
38 lines
874 B
YAML
38 lines
874 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, windows-latest, macOS-latest]
|
|
node: [14.x, 12.x, 10.x, 8.x]
|
|
fail-fast: false
|
|
runs-on: ${{ matrix.os }}
|
|
name: Node ${{ matrix.node }} on ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
- name: npm install and test
|
|
run: |
|
|
npm ci
|
|
npm test
|
|
env:
|
|
CI: true
|
|
- name: Checkout gohugoio/hugoDocs
|
|
uses: actions/checkout@master
|
|
with:
|
|
repository: gohugoio/hugoDocs
|
|
path: docs/
|
|
fetch-depth: 1
|
|
- name: Build docs site
|
|
run: node cli.js --source docs/ --minify --verbose
|