Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail on bad builds in CI earlier #302

Merged
merged 6 commits into from
Sep 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down