38 lines
983 B
YAML
Raw Normal View History

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.3.5
- 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'
- 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
./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