-
Notifications
You must be signed in to change notification settings - Fork 10
68 lines (63 loc) · 1.89 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on:
pull_request:
paths-ignore: [ '**/README.md', '**/CHANGELOG.md' ]
push:
paths-ignore: [ '**/README.md', '**/CHANGELOG.md' ]
jobs:
test:
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
strategy:
fail-fast: false
matrix:
ruby: ["3.1", "3.0", "2.7", "2.6", "jruby", "truffleruby", "debug"]
runs-on: ubuntu-latest
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
steps:
- uses: actions/checkout@v2
- run: rm Gemfile.lock
- name: Setup Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run specs
run: bin/rake spec
coverage:
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Upload code coverage data to CodeClimate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: bin/rake test:coverage
debug: true
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Enforce codestyle with `standard`
run: bin/rake lint:code
- name: Check Yard syntax with `yard-junk`
run: bin/rake lint:docs
- name: Check for vulnerable dependencies with `bundle-audit`
run: bin/rake lint:deps
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check markdown files for broken links
uses: justinbeckwith/linkinator-action@v1
with:
paths: '*.md, .github/*.md'
verbosity: 'INFO'
skip: 'vendor/, astroband/ruby-xdr/compare'