-
Notifications
You must be signed in to change notification settings - Fork 70
36 lines (36 loc) · 933 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
31
32
33
34
35
36
name: Continuous Integration
on:
push:
branches: [main]
pull_request:
jobs:
ruby:
strategy:
fail-fast: false
matrix:
ruby: [2.5, 2.6, 2.7]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install
- name: Run rspec
run: bundle exec rspec
- name: Enable rubocop matcher
run: echo "::add-matcher::.github/rubocop_matcher.json"
- name: Run rubocop
run: bundle exec rubocop --display-cop-names
markdown:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Lint Markdown
uses: actionshub/[email protected]
- name: Check links
uses: gaurav-nelson/github-action-markdown-link-check@v1