-
Notifications
You must be signed in to change notification settings - Fork 54
48 lines (48 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
name: Continuous Integration
on:
push:
branches: [main]
pull_request:
jobs:
ruby:
strategy:
fail-fast: false
matrix:
ruby: ['2.7']
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- 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: Run rubocop
run: bundle exec rubocop --display-cop-names
- name: Run integration testing
run: ./test/run.sh
# This doesn't work on PRs from forks due to GITHUB_TOKEN, which makes
# it kinda useless for now
# https://github.com/andrewmcodes/rubocop-linter-action/issues/68
# rubocop:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
# - name: Run Rubocop Linter
# uses: andrewmcodes/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
markdown:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Lint Markdown
uses: actionshub/[email protected]
- name: Check links
uses: gaurav-nelson/github-action-markdown-link-check@v1