-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 923 Bytes
/
brotli-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
31
32
33
34
35
36
37
38
39
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 6 * * 6'
jobs:
build:
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: install on linux
if: startsWith(matrix.os,'ubuntu')
run: sudo apt-get install libbrotli-dev
- uses: actions/checkout@v2
- name: Install Crystal
uses: oprypin/install-crystal@v1.3.0
- name: Install dependencies
run: shards install
- name: Run tests
run: crystal spec
- name: Generate docs
run: crystal doc
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs
SINGLE_COMMIT: true