Skip to content

Rabbit 🐇 season #2269

Rabbit 🐇 season

Rabbit 🐇 season #2269

Workflow file for this run

name: Ruby Tests
on:
schedule:
- cron: 0 */6 * * *
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
bundler-cache: true
- name: Run rspec tests
uses: trunk-io/analytics-uploader@main
with:
# Path to your test results.
junit-paths: "**/rspec_test.xml"
# Provide your Trunk organization slug.
org-slug: trunk-staging-org
# Provide your Trunk API token as a GitHub secret.
token: ${{ secrets.TRUNK_STAGING_ORG_API_TOKEN }}
run: bundle exec rspec ruby/rspec --format RspecJunitFormatter --out rspec_test.xml
env:
TRUNK_PUBLIC_API_ADDRESS: https://api.trunk-staging.io
- name: Run minitest tests
if: ${{ always() }}
uses: trunk-io/analytics-uploader@main
with:
# Path to your test results.
junit-paths: "**/ruby/minitest/results/*.xml"
# Provide your Trunk organization slug.
org-slug: trunk-staging-org
# Provide your Trunk API token as a GitHub secret.
token: ${{ secrets.TRUNK_STAGING_ORG_API_TOKEN }}
run: bundle exec ruby ruby/minitest/mixer.rb
env:
TRUNK_PUBLIC_API_ADDRESS: https://api.trunk-staging.io