-
Notifications
You must be signed in to change notification settings - Fork 6
69 lines (52 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: ci
on:
pull_request:
branches:
- main
jobs:
lint-ruby:
runs-on: ubuntu-latest
name: "lint / ${{ matrix.ruby }}"
strategy:
matrix:
ruby:
- 3.2.0
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "${{matrix.ruby}}"
- name: Install Dependencies
shell: bash -l -e -o pipefail {0}
run: |
rm -f Gemfile.lock
bundle install --jobs=3 && bundle update --jobs=3
- name: Run Linter
shell: bash -l -e -o pipefail {0}
run: |
CI=true bundle exec standardrb
test-ruby:
runs-on: ubuntu-latest
name: "test / ${{ matrix.ruby }}"
strategy:
matrix:
ruby:
- 3.2.0
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "${{matrix.ruby}}"
- name: Install Dependencies
shell: bash -l -e -o pipefail {0}
run: |
rm -f Gemfile.lock
bundle install --jobs=3 && bundle update --jobs=3
- name: Run Tests
shell: bash -l -e -o pipefail {0}
run: |
CI=true bundle exec rspec