11name : CI Workflow
2- description : ' Shared CI workflow.'
2+ description : " Shared CI workflow."
33inputs :
44 ruby-version :
5- description : ' The version of ruby to setup and run'
5+ description : " The version of ruby to setup and run"
6+ required : true
7+ token :
8+ description : " GH token used to fetch the SDK test harness"
69 required : true
710
811runs :
@@ -11,11 +14,10 @@ runs:
1114 - uses : ruby/setup-ruby@v1
1215 with :
1316 ruby-version : ${{ inputs.ruby-version }}
14- bundler : 2.2.10
1517
1618 - name : Install dependencies
1719 shell : bash
18- run : bundle _2.2.10_ install
20+ run : bundle install
1921
2022 - name : Skip end to end tests for jruby
2123 if : ${{ startsWith(inputs.ruby-version, 'jruby') }}
2426
2527 - name : Run tests
2628 shell : bash
27- run : bundle _2.2.10_ exec rspec spec
29+ run : bundle exec rspec spec
30+
31+ - name : Run RuboCop
32+ if : ${{ !startsWith(inputs.ruby-version, 'jruby') }}
33+ shell : bash
34+ run : bundle exec rubocop --parallel
35+
36+ - name : Build contract tests
37+ if : ${{ !startsWith(inputs.ruby-version, 'jruby') }}
38+ shell : bash
39+ run : make build-contract-tests
2840
29- - name : Run contract tests
41+ - name : Start contract test service
3042 if : ${{ !startsWith(inputs.ruby-version, 'jruby') }}
3143 shell : bash
32- run : make contract-tests
44+ run : make start-contract-test-service-bg
45+
46+ -
uses :
launchdarkly/gh-actions/actions/[email protected] 47+ if : ${{ !startsWith(inputs.ruby-version, 'jruby') }}
48+ with :
49+ test_service_port : 8000
50+ token : ${{ inputs.token }}
51+ repo : sse-contract-tests
52+ branch : main
53+ version : v1
0 commit comments