2021-08-25 08:55:10 -07:00
|
|
|
name: Ensure Site Builds Cleanly
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-08-25 09:49:38 -07:00
|
|
|
- name: Install GraphicsMagick
|
|
|
|
run: sudo apt install graphicsmagick
|
2021-08-25 08:55:10 -07:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: '14'
|
|
|
|
cache: 'npm'
|
2021-08-25 11:31:34 -07:00
|
|
|
- name: Restore node_modules cache
|
2021-08-25 10:59:14 -07:00
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: node_modules
|
|
|
|
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-node_modules
|
2021-08-25 09:13:16 -07:00
|
|
|
- name: Restore Asset Caches
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
key: if-cache
|
|
|
|
path: |
|
|
|
|
./if-cache
|
2021-08-30 21:34:43 -07:00
|
|
|
./if-cache.json
|
2021-08-25 09:13:16 -07:00
|
|
|
./twitter-cache.json
|
2021-08-25 10:59:14 -07:00
|
|
|
- run: npm i
|
2021-08-25 08:55:10 -07:00
|
|
|
- run: npm test
|
2021-08-25 09:05:19 -07:00
|
|
|
- run: npm run build
|