1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-26 13:28:28 -04:00

CI: add an extended workflow

This commit is contained in:
XhmikosR 2021-11-03 12:40:30 +02:00
parent 8dd300b9a8
commit cac7009ac6

View File

@ -59,12 +59,41 @@ jobs:
- name: Run tests
run: npm run mocha
test-extended:
name: Node ${{ matrix.node }} on ${{ matrix.os }} (Extended)
runs-on: ${{ matrix.os }}
env:
HUGO_BIN_BUILD_TAGS: extended
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: [16]
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install npm dependencies
run: npm ci
- name: Run tests
run: npm run mocha
publish:
if: startsWith(github.ref, 'refs/tags/')
needs: [lint, test]
needs: [lint, test, test-extended]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clone repository
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with: