feat: add hugo-installer + auto-changelog

This commit is contained in:
Henk Verlinde
2021-06-24 08:02:21 +02:00
parent 63786ab461
commit 93f7598f87
12 changed files with 1277 additions and 10255 deletions

View File

@ -1,13 +1,10 @@
# Test and build your Hyas project
# For more information see: https://henkverlinde.com/continuous-integration-workflow-for-your-hyas-project/
name: Hyas CI
on:
push:
branches: [master]
branches: master
pull_request:
branches: [master]
branches: master
jobs:
build:
@ -16,33 +13,22 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [14.x, 15.x]
node: [14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Check out Hyas project
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- name: Set up Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Check install Hugo
run: hugo version
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci
- name: Check for linting errors
- name: Run Hyas test script
run: npm test
- name: Delete temporary directories
run: npm run clean
- name: Build production website
run: npm run build
run: npm run build