File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ master ]
88
9+ env :
10+ # GITHUB_PULL_REQUEST_URL are used for commenting test reports in Launchable Github App.
11+ # https://github.com/launchableinc/cli/blob/v1.80.1/launchable/utils/link.py#L42
12+ GITHUB_PULL_REQUEST_URL : ${{ github.event.pull_request.html_url }}
13+ # The following envs are necessary in Launchable tokenless authentication.
14+ # https://github.com/launchableinc/cli/blob/v1.80.1/launchable/utils/authentication.py#L20
15+ LAUNCHABLE_ORGANIZATION : " ruby"
16+ LAUNCHABLE_WORKSPACE : " debug"
17+ # https://github.com/launchableinc/cli/blob/v1.80.1/launchable/utils/authentication.py#L71
18+ GITHUB_PR_HEAD_SHA : ${{ github.event.pull_request.head.sha }}
19+
920jobs :
1021 test :
1122
1829
1930 steps :
2031 - uses : actions/checkout@v4
32+ with :
33+ # Set fetch-depth: 0 so that Launchable can receive commits information.
34+ fetch-depth : 0
35+ # Launchable requires Python and Java
36+ # https://www.launchableinc.com/docs/resources/cli-reference/
37+ - uses : actions/setup-python@v4
38+ with :
39+ python-version : " 3.10"
40+ - name : Set up JDK 1.8
41+ uses : actions/setup-java@v3
42+ with :
43+ distribution : ' adopt'
44+ java-version : ' 8'
45+ # Setup Launchable
46+ - name : Launchable - install command
47+ run : pip install launchable
48+ - name : Launchable - verify
49+ run : launchable verify
50+ - name : Launchable - record build
51+ run : launchable record build --name ${GITHUB_PR_HEAD_SHA}
52+
2153 - name : Set up Ruby
2254 uses : ruby/setup-ruby@v1
2355 with :
2759 run : |
2860 bundle exec rake clobber
2961 bundle exec rake compile
30- bundle exec rake test_protocol
62+ TESTOPTS="--runner=junitxml --junitxml-output-file=protocol.xml" bundle exec rake test_protocol
63+ - name : Launchable - record tests
64+ run : launchable record tests --flavor test=protocol --flavor os=ubuntu-latest --flavor ruby=${{ matrix.ruby-version }} file protocol.xml
65+ if : always()
Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ master ]
88
9+ env :
10+ # GITHUB_PULL_REQUEST_URL are used for commenting test reports in Launchable Github App.
11+ # https://github.com/launchableinc/cli/blob/v1.80.1/launchable/utils/link.py#L42
12+ GITHUB_PULL_REQUEST_URL : ${{ github.event.pull_request.html_url }}
13+ # The following envs are necessary in Launchable tokenless authentication.
14+ # https://github.com/launchableinc/cli/blob/v1.80.1/launchable/utils/authentication.py#L20
15+ LAUNCHABLE_ORGANIZATION : " ruby"
16+ LAUNCHABLE_WORKSPACE : " debug"
17+ # https://github.com/launchableinc/cli/blob/v1.80.1/launchable/utils/authentication.py#L71
18+ GITHUB_PR_HEAD_SHA : ${{ github.event.pull_request.head.sha }}
19+
920jobs :
1021 test :
1122
1829
1930 steps :
2031 - uses : actions/checkout@v4
32+ with :
33+ # Set fetch-depth: 0 so that Launchable can receive commits information.
34+ fetch-depth : 0
35+ # Launchable requires Python and Java
36+ # https://www.launchableinc.com/docs/resources/cli-reference/
37+ - uses : actions/setup-python@v4
38+ with :
39+ python-version : " 3.10"
40+ - name : Set up JDK 1.8
41+ uses : actions/setup-java@v3
42+ with :
43+ distribution : ' adopt'
44+ java-version : ' 8'
45+ # Setup Launchable
46+ - name : Launchable - install command
47+ run : pip install launchable
48+ - name : Launchable - verify
49+ run : launchable verify
50+ - name : Launchable - record build
51+ run : launchable record build --name ${GITHUB_PR_HEAD_SHA}
52+
2153 - name : Set up Ruby
2254 uses : ruby/setup-ruby@v1
2355 with :
2759 run : |
2860 bundle exec rake clobber
2961 bundle exec rake compile
30- bundle exec rake test_console
62+ TESTOPTS="--runner=junitxml --junitxml-output-file=ruby-macos.xml" bundle exec rake test_console
63+ - name : launchable record tests
64+ run : launchable record tests --flavor test=console --flavor os=macos-latest --flavor ruby=${{ matrix.ruby-version }} file ruby-macos.xml
65+ if : always()
Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ master ]
88
9+ env :
10+ # GITHUB_PULL_REQUEST_URL are used for commenting test reports in Launchable Github App.
11+ # https://github.com/launchableinc/cli/blob/v1.80.1/launchable/utils/link.py#L42
12+ GITHUB_PULL_REQUEST_URL : ${{ github.event.pull_request.html_url }}
13+ # The following envs are necessary in Launchable tokenless authentication.
14+ # https://github.com/launchableinc/cli/blob/v1.80.1/launchable/utils/authentication.py#L20
15+ LAUNCHABLE_ORGANIZATION : " ruby"
16+ LAUNCHABLE_WORKSPACE : " debug"
17+ # https://github.com/launchableinc/cli/blob/v1.80.1/launchable/utils/authentication.py#L71
18+ GITHUB_PR_HEAD_SHA : ${{ github.event.pull_request.head.sha }}
19+
920jobs :
1021 test :
1122
1829
1930 steps :
2031 - uses : actions/checkout@v4
32+ with :
33+ # Set fetch-depth: 0 so that Launchable can receive commits information.
34+ fetch-depth : 0
35+ # Launchable requires Python and Java
36+ # https://www.launchableinc.com/docs/resources/cli-reference/
37+ - uses : actions/setup-python@v4
38+ with :
39+ python-version : " 3.10"
40+ - name : Set up JDK 1.8
41+ uses : actions/setup-java@v3
42+ with :
43+ distribution : ' adopt'
44+ java-version : ' 8'
45+ # Setup Launchable
46+ - name : Launchable - install command
47+ run : pip install launchable
48+ - name : Launchable - verify
49+ run : launchable verify
50+ - name : Launchable - record build
51+ run : launchable record build --name ${GITHUB_PR_HEAD_SHA}
52+
2153 - name : Set up Ruby
2254 uses : ruby/setup-ruby@v1
2355 with :
2759 run : |
2860 bundle exec rake clobber
2961 bundle exec rake compile
30- bundle exec rake test_console
62+ TESTOPTS="--runner=junitxml --junitxml-output-file=ruby.xml" bundle exec rake test_console
63+ - name : launchable record tests
64+ run : launchable record tests --flavor test=console --flavor os=ubuntu-latest --flavor ruby=${{ matrix.ruby-version }} file ruby.xml
65+ if : always()
Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ master ]
88
9+ env :
10+ # GITHUB_PULL_REQUEST_URL are used for commenting test reports in Launchable Github App.
11+ # https://github.com/launchableinc/cli/blob/v1.80.1/launchable/utils/link.py#L42
12+ GITHUB_PULL_REQUEST_URL : ${{ github.event.pull_request.html_url }}
13+ # The following envs are necessary in Launchable tokenless authentication.
14+ # https://github.com/launchableinc/cli/blob/v1.80.1/launchable/utils/authentication.py#L20
15+ LAUNCHABLE_ORGANIZATION : " ruby"
16+ LAUNCHABLE_WORKSPACE : " debug"
17+ # https://github.com/launchableinc/cli/blob/v1.80.1/launchable/utils/authentication.py#L71
18+ GITHUB_PR_HEAD_SHA : ${{ github.event.pull_request.head.sha }}
19+
920jobs :
1021 test :
1122
1829
1930 steps :
2031 - uses : actions/checkout@v4
32+ with :
33+ # Set fetch-depth: 0 so that Launchable can receive commits information.
34+ fetch-depth : 0
35+ # Launchable requires Python and Java
36+ # https://www.launchableinc.com/docs/resources/cli-reference/
37+ - uses : actions/setup-python@v4
38+ with :
39+ python-version : " 3.10"
40+ - name : Set up JDK 1.8
41+ uses : actions/setup-java@v3
42+ with :
43+ distribution : ' adopt'
44+ java-version : ' 8'
45+ # Setup Launchable
46+ - name : Launchable - install command
47+ run : pip install launchable
48+ - name : Launchable - verify
49+ run : launchable verify
50+ - name : Launchable - record build
51+ run : launchable record build --name ${GITHUB_PR_HEAD_SHA}
52+
2153 - name : Set up Ruby
2254 uses : ruby/setup-ruby@v1
2355 with :
2759 run : |
2860 bundle exec rake clobber
2961 bundle exec rake compile
30- bundle exec rake test_test
62+ TESTOPTS="--runner=junitxml --junitxml-output-file=test_test.xml" bundle exec rake test_test
63+ - name : launchable record tests
64+ run : launchable record tests --flavor test=test-framework --flavor os=ubuntu-latest --flavor ruby=${{ matrix.ruby-version }} file test_test.xml
65+ if : always()
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ gem "rake-compiler"
77gem "test-unit" , "~> 3.0"
88gem "test-unit-rr"
99gem "json-schema"
10+ gem "test-unit-runner-junitxml"
Original file line number Diff line number Diff line change 77require 'timeout'
88require 'json'
99require 'rbconfig'
10+ # "test/unit/runner/junitxml" is used for reporting test result in JUnit XML format.
11+ require "test/unit/runner/junitxml"
1012require_relative '../../lib/debug/client'
1113
1214require_relative 'assertions'
You can’t perform that action at this time.
0 commit comments