-
Notifications
You must be signed in to change notification settings - Fork 48
44 lines (42 loc) · 1.14 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
name: Test
on: push
jobs:
test:
runs-on: "ubuntu-latest"
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
ruby_version: ["2.2", "2.7"]
experimental: [false]
include:
- ruby_version: "3.0"
experimental: true
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
- run: "bundle install"
- run: "bundle exec rake"
pact:
runs-on: "ubuntu-latest"
continue-on-error: true
strategy:
fail-fast: false
matrix:
feature: ["", "publish_contracts", "deployments"]
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"
- run: "bundle install"
- run: |
rm -rf spec/pacts/*
bundle exec rspec spec/service_providers/
bundle exec rake pact:publish:pactflow
env:
PACT_BROKER_TOKEN: ${{ secrets.PACTFLOW_PACT_OSS_TOKEN }}
PACT_BROKER_FEATURES: ${{ matrix.feature }}
TEST_FEATURE: ${{ matrix.feature }}