Skip to content

Commit 73fd417

Browse files
dingsdaxclaude
andcommitted
ci(yabeda): Add GitHub Actions workflow for sentry-yabeda
Add sentry_yabeda_test.yml following the same pattern as other gem workflows (resque, delayed_job, opentelemetry). Wire it into tests.yml so it runs on every PR and push to master, and is included in the CodeCov notification gate. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 670e40a commit 73fd417

2 files changed

Lines changed: 66 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: sentry-yabeda Test
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
outputs:
7+
matrix-result:
8+
description: "Matrix job result"
9+
value: ${{ jobs.test.outputs.matrix-result }}
10+
inputs:
11+
versions:
12+
required: true
13+
type: string
14+
# Cancel in progress workflows on pull_requests.
15+
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
16+
concurrency:
17+
group: sentry-yabeda-test-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
jobs:
20+
test:
21+
defaults:
22+
run:
23+
working-directory: sentry-yabeda
24+
name: Ruby ${{ matrix.ruby_version }}, options - ${{ toJson(matrix.options) }}
25+
runs-on: ubuntu-latest
26+
timeout-minutes: 10
27+
env:
28+
RUBYOPT: ${{ matrix.options.rubyopt }}
29+
BUNDLE_GEMFILE: ${{ github.workspace }}/sentry-yabeda/Gemfile
30+
BUNDLE_WITHOUT: rubocop
31+
JRUBY_OPTS: "--debug" # for more accurate test coverage
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
ruby_version: ${{ fromJson(inputs.versions) }}
36+
include:
37+
- ruby_version: "3.2"
38+
options:
39+
rubyopt: "--enable-frozen-string-literal --debug=frozen-string-literal"
40+
exclude:
41+
- ruby_version: 'jruby'
42+
- ruby_version: 'jruby-head'
43+
steps:
44+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
45+
46+
- name: Set up Ruby ${{ matrix.ruby_version }}
47+
uses: ruby/setup-ruby@319994f95fa847cf3fb3cd3dbe89f6dcde9f178f # v1
48+
with:
49+
ruby-version: ${{ matrix.ruby_version }}
50+
bundler-cache: true
51+
52+
- name: Run specs
53+
run: bundle exec rake
54+
55+
- name: Upload Coverage
56+
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
57+
with:
58+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ jobs:
6363
versions: ${{ needs.ruby-versions.outputs.versions }}
6464
secrets: inherit
6565

66+
yabeda-tests:
67+
needs: ruby-versions
68+
uses: ./.github/workflows/sentry_yabeda_test.yml
69+
with:
70+
versions: ${{ needs.ruby-versions.outputs.versions }}
71+
secrets: inherit
72+
6673
codecov:
6774
name: CodeCov
6875
runs-on: ubuntu-latest
@@ -73,6 +80,7 @@ jobs:
7380
- delayed_job-tests
7481
- resque-tests
7582
- opentelemetry-tests
83+
- yabeda-tests
7684
steps:
7785
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
7886

0 commit comments

Comments
 (0)