ci: Use bin/test and mise in test workflows #1530
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests & CodeCov | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| - \d+-\d+ | |
| pull_request: | |
| concurrency: | |
| group: tests-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| # Install the mise toolchain once and save the cache under this run's scope | |
| # before any matrix job starts. The matrix jobs (and update_lockfiles) share the | |
| # same cache key, so they only restore it — they never all install 8 Rubies in | |
| # parallel on a cold cache. Saving here each run also makes us self-healing: even | |
| # if the persistent (master) cache was evicted, this run repopulates it. | |
| setup-mise: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - uses: ./.github/actions/setup-mise | |
| delayed_job-tests: | |
| needs: setup-mise | |
| uses: ./.github/workflows/sentry_delayed_job_test.yml | |
| secrets: inherit | |
| opentelemetry-tests: | |
| needs: setup-mise | |
| uses: ./.github/workflows/sentry_opentelemetry_test.yml | |
| secrets: inherit | |
| rails-tests: | |
| needs: setup-mise | |
| uses: ./.github/workflows/sentry_rails_test.yml | |
| secrets: inherit | |
| resque-tests: | |
| needs: setup-mise | |
| uses: ./.github/workflows/sentry_resque_test.yml | |
| secrets: inherit | |
| ruby-tests: | |
| needs: setup-mise | |
| uses: ./.github/workflows/sentry_ruby_test.yml | |
| secrets: inherit | |
| sidekiq-tests: | |
| needs: setup-mise | |
| uses: ./.github/workflows/sentry_sidekiq_test.yml | |
| secrets: inherit | |
| yabeda-tests: | |
| needs: setup-mise | |
| uses: ./.github/workflows/sentry_yabeda_test.yml | |
| secrets: inherit | |
| codecov: | |
| name: CodeCov | |
| runs-on: ubuntu-latest | |
| needs: | |
| - ruby-tests | |
| - rails-tests | |
| - sidekiq-tests | |
| - delayed_job-tests | |
| - resque-tests | |
| - opentelemetry-tests | |
| - yabeda-tests | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Codecov | |
| uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 | |
| with: | |
| run_command: send-notifications | |
| token: ${{ secrets.CODECOV_TOKEN }} |