From cac7009ac6100ba9149ff67bc69275ced5e8034e Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 3 Nov 2021 12:40:30 +0200 Subject: [PATCH] CI: add an extended workflow --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0d5e4f..a004209 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: