ci #307
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |