diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c26b0ba06..49c7796d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,21 @@ jobs: hugo-version: "0.71.1" extended: true + - name: All Branches - Install Node 12.x + uses: actions/setup-node@v1 + with: + node-version: '12.x' + + - name: All Branches - Install npm modules for Hugo + run: | + npm install + npm install -g postcss-cli + npm i -D autoprefixer + + # Run "build" to catch errors as early as possible in CI + - name: All Branches - Test For Broken Builds in Hugo + run: hugo + # Pinning to current version as of Aug 3, 2020 for stability - name: All Branches - Install Go v1.14 uses: actions/setup-go@v2 @@ -48,19 +63,6 @@ jobs: shell: bash run: ./.github/scripts/muffet.sh - - name: Master Branch Only - Install Node 12.x - if: ${{ github.ref == 'refs/heads/master' }} - uses: actions/setup-node@v1 - with: - node-version: '12.x' - - - name: Master Branch Only - Install npm modules for hugo build - if: ${{github.ref == 'refs/heads/master' }} - run: | - npm install - npm install -g postcss-cli - npm i -D autoprefixer - - name: Master Branch Only - Build for prod with minify if: github.ref == 'refs/heads/master' run: env HUGO_ENV="production" hugo --minify