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 d5143df
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 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:
LAUNCHABLE_TOKEN: ${{ secrets.LAUNCHABLE_TOKEN }}
GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}

jobs:
test:

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

steps:
- uses: actions/checkout@v4
# for launchable
- 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'
- name: Install launchable command
run: |
pip install launchable
- name: verify
run: launchable verify
- name: 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=console.xml" bundle exec rake test_console
- name: launchable record tests
run: launchable record tests file *.xml
if: always()

0 comments on commit d5143df

Please sign in to comment.