-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.29 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
name: ci
on:
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
workflow_dispatch:
push:
branches:
- '**'
tags-ignore:
- '*.*' # don't run ci on tags, should already have run on commit tag points to.
paths-ignore:
- README.md # don't run for readme changes.
pull_request:
branches:
- 'dependabot*'
schedule:
- cron: '0 0 * * 1' # Every monday at midnight
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby (using .ruby-version file)
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.1
bundler-cache: true
- name: Install dependencies
run: |
gem install bundler -v 2.1.4
bundle config path vendor/bundle
bundle install
- name: Start jekyll
run: |
bundle exec jekyll serve & # start a Web server (use & to start in new process)
sleep 3 # give Web server some time to bind to sockets, etc
- name: Tests
run: |
bundle exec rspec -t ~allow_failure
- name: Tests allowable failures
id: allowable_failures
continue-on-error: true
run: |
bundle exec rspec -t allow_failure
- name: Lint
run: |
bundle exec rubocop