krata/.github/workflows/ci.yml

48 lines
890 B
YAML
Raw Normal View History

2020-05-29 23:32:36 +02:00
name: 'Continuous Integration'
2020-01-21 20:05:06 +01:00
on:
push:
2020-08-20 19:40:56 +02:00
branches-ignore:
- 'production'
2020-03-01 18:03:58 +01:00
tags-ignore:
- '*'
2020-01-21 20:05:06 +01:00
paths-ignore:
2020-03-01 18:03:58 +01:00
- '.github/**'
2020-06-05 21:19:24 +02:00
- '!.github/workflows/ci.yml'
2020-03-01 18:03:58 +01:00
- '.travis.yml'
- '.gitignore'
- 'docs/**'
- 'README.md'
- 'LICENSE'
2020-01-21 20:05:06 +01:00
pull_request:
paths:
2020-07-29 20:36:47 +02:00
- '**'
2020-01-21 20:05:06 +01:00
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
2020-01-21 20:05:06 +01:00
- name: Checkout
uses: actions/checkout@v2
2020-04-09 21:15:51 +02:00
with:
fetch-depth: 0 # for posts's lastmod
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
2020-01-21 20:05:06 +01:00
- name: Build Site
env:
JEKYLL_ENV: production
2020-01-21 20:05:06 +01:00
run: |
bundle exec jekyll b
2020-01-21 20:05:06 +01:00
- name: Test Site
run: |
bash tools/test.sh