Skip to content

Commit 400046c

Browse files
committed
Fix workflow
1 parent 550bc15 commit 400046c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ on:
1919
env:
2020
TEST_ARGS: -coverprofile coverage.out -covermode atomic
2121
TEST_GEM_DIR: ruby/testdata/example/
22+
GO_GEM_DIR: gem/
2223

2324
jobs:
2425
test:
@@ -158,12 +159,45 @@ jobs:
158159
status: ${{ job.status }}
159160
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
160161

162+
go_gem:
163+
name: "go_gem (Ruby ${{ matrix.ruby }})"
164+
165+
runs-on: ubuntu-latest
166+
167+
strategy:
168+
fail-fast: false
169+
170+
matrix:
171+
ruby:
172+
- "3.3"
173+
174+
steps:
175+
- uses: actions/checkout@v4
176+
177+
- uses: ruby/setup-ruby@v1
178+
with:
179+
ruby-version: ${{ matrix.ruby }}
180+
bundler-cache: true
181+
182+
- run: bundle exec rspec
183+
working-directory: ${{ env.GO_GEM_DIR }}
184+
185+
- name: Slack Notification (not success)
186+
uses: act10ns/slack@v2
187+
if: "! success()"
188+
continue-on-error: true
189+
with:
190+
status: ${{ job.status }}
191+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
192+
matrix: ${{ toJson(matrix) }}
193+
161194
notify:
162195
needs:
163196
- test
164197
- go-lint
165198
- ruby-lint
166199
- ruby-rbs
200+
- go_gem
167201

168202
runs-on: ubuntu-latest
169203

0 commit comments

Comments
 (0)