-
-
Notifications
You must be signed in to change notification settings - Fork 77
30 lines (29 loc) · 867 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Build
on:
push:
pull_request:
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
env:
COMPOSE_FILE: "docker-compose.yml:docker-compose.ci.yml"
steps:
- name: Download source
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.cache/bundle
tmp/.htmlproofer
key: gem-${{ hashFiles('Gemfile.lock') }}
restore-keys: gem-
- name: Build website
run: |
docker compose run --rm web /bin/bash -c "bundle check || bundle install --jobs=3"
docker compose run --rm web make build
- name: Test
run: |
docker compose run --rm web make check_html
docker compose run --rm web /bin/bash -c "make check_external_links || true" # allowed to fail