Skip to content

Commit

Permalink
Add launchable integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ono-max committed Jan 29, 2024
1 parent ab937ac commit e4da733
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 4 deletions.
28 changes: 27 additions & 1 deletion .github/workflows/protocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ master ]

env:
# This is necessary for Launchable tokenless authentication
GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}

jobs:
test:

Expand All @@ -18,13 +22,35 @@ jobs:

steps:
- uses: actions/checkout@v4
# Launchable requires Python and Java
# https://www.launchableinc.com/docs/resources/cli-reference/
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
# Setup Launchable
- name: Launchable - install command
run: pip install launchable
- name: Launchable - verify
run: launchable verify
- name: Launchable - record build
run: launchable record build --name ${GITHUB_PR_HEAD_SHA}

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: |
gem install test-unit-runner-junitxml
bundle exec rake clobber
bundle exec rake compile
bundle exec rake test_protocol
TESTOPTS="--runner=junitxml --junitxml-output-file=protocol.xml" bundle exec rake test_protocol
- name: Launchable - record tests
run: launchable record tests --flavor test=protocol --flavor os=ubuntu-latest --flavor ruby=${{ matrix.ruby-version }} file protocol.xml
if: always()
27 changes: 26 additions & 1 deletion .github/workflows/ruby-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ master ]

env:
# This is necessary for Launchable tokenless authentication
GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}

jobs:
test:

Expand All @@ -18,6 +22,24 @@ jobs:

steps:
- uses: actions/checkout@v4
# Launchable requires Python and Java
# https://www.launchableinc.com/docs/resources/cli-reference/
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
# Setup Launchable
- name: Launchable - install command
run: pip install launchable
- name: Launchable - verify
run: launchable verify
- name: Launchable - record build
run: launchable record build --name ${GITHUB_PR_HEAD_SHA}

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -27,4 +49,7 @@ jobs:
run: |
bundle exec rake clobber
bundle exec rake compile
bundle exec rake test_console
TESTOPTS="--runner=junitxml --junitxml-output-file=ruby-macos.xml" bundle exec rake test_console
- name: launchable record tests
run: launchable record tests --flavor test=console --flavor os=macos-latest --flavor ruby=${{ matrix.ruby-version }} file ruby-macos.xml
if: always()
28 changes: 27 additions & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ master ]

env:
# This is necessary for Launchable tokenless authentication
GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}

jobs:
test:

Expand All @@ -18,13 +22,35 @@ jobs:

steps:
- uses: actions/checkout@v4
# Launchable requires Python and Java
# https://www.launchableinc.com/docs/resources/cli-reference/
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
# Setup Launchable
- name: Launchable - install command
run: pip install launchable
- name: Launchable - verify
run: launchable verify
- name: Launchable - record build
run: launchable record build --name ${GITHUB_PR_HEAD_SHA}

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: |
gem install test-unit-runner-junitxml
bundle exec rake clobber
bundle exec rake compile
bundle exec rake test_console
TESTOPTS="--runner=junitxml --junitxml-output-file=ruby.xml" bundle exec rake test_console
- name: launchable record tests
run: launchable record tests --flavor test=console --flavor os=ubuntu-latest --flavor ruby=${{ matrix.ruby-version }} file ruby.xml
if: always()
27 changes: 26 additions & 1 deletion .github/workflows/test_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ master ]

env:
# This is necessary for Launchable tokenless authentication
GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}

jobs:
test:

Expand All @@ -18,6 +22,24 @@ jobs:

steps:
- uses: actions/checkout@v4
# Launchable requires Python and Java
# https://www.launchableinc.com/docs/resources/cli-reference/
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
# Setup Launchable
- name: Launchable - install command
run: pip install launchable
- name: Launchable - verify
run: launchable verify
- name: Launchable - record build
run: launchable record build --name ${GITHUB_PR_HEAD_SHA}

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -27,4 +49,7 @@ jobs:
run: |
bundle exec rake clobber
bundle exec rake compile
bundle exec rake test_test
TESTOPTS="--runner=junitxml --junitxml-output-file=test_test.xml" bundle exec rake test_test
- name: launchable record tests
run: launchable record tests --flavor test=test-framework --flavor os=ubuntu-latest --flavor ruby=${{ matrix.ruby-version }} file test_test.xml
if: always()

0 comments on commit e4da733

Please sign in to comment.