-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (46 loc) · 1.19 KB
/
main.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
name: Push & PR
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]
jobs:
rspec:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
activesupport: ['6.1', '7.0', '7.1']
json_schemer: ['2.0', '2.1']
ruby: ['3.1', '3.2', '3.3']
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '${{ matrix.ruby }}'
bundler-cache: true
cache-version: ${{ matrix.activesupport }}-${{ matrix.json_schemer }}
env:
ACTIVESUPPORT: '${{ matrix.activesupport }}'
JSON_SCHEMER: '${{ matrix.json_schemer }}'
- name: Rspec
run: bundle exec rspec
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
cache-version: '7.1'
- name: Rubocop
run: bundle exec rubocop
openapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Validate openapi fixture
run: npx @redocly/openapi-cli lint spec/fixtures/openapi/openapi.yaml