-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (55 loc) · 1.62 KB
/
test.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
name: CI
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize, reopened]
jobs:
cucumber:
name: "Cucumber / Ruby ${{ matrix.ruby-version }} / Faraday ${{ matrix.faraday }}"
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["3.2", "3.1", "3.0", "2.7"]
faraday: ["1.0", "2.0"]
env:
FARADAY_VERSION: ${{ matrix.faraday }}
steps:
- uses: actions/checkout@v4
- run: ./script/install-apt-deps.sh
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: cucumber
run: ./script/fail_if_warnings cucumber features/
rspec:
name: "RSpec / Ruby ${{ matrix.ruby-version }} / Faraday ${{ matrix.faraday }}"
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["3.2", "3.1", "3.0", "2.7"]
faraday: ["1.0", "2.0"]
env:
FARADAY_VERSION: ${{ matrix.faraday }}
steps:
- uses: actions/checkout@v4
- run: ./script/install-apt-deps.sh
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: rspec
run: ./script/fail_if_warnings rspec spec/
doc-coverage:
name: "Doc coverage"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./script/install-apt-deps.sh
- uses: ruby/setup-ruby@v1
with:
ruby-version: "ruby"
bundler-cache: true
- name: doc coverage
run: bundle exec yard stats --list-undoc | tee /dev/stdout | grep -q '100.00% documented'