Skip to content

Commit 30ef459

Browse files
committed
Restore clients-ruby-tests CI workflow + run on pull_request
The workflow vanished during a rebase/squash of features/clients (only the release workflow survived), so the latest commits on the PR have no Clients Ruby: Tests check at all. Restore the file. While here, add a pull_request trigger so PRs from forks (no longer the case for this repo, but cheap insurance) and the GitHub PR UI status section both pick up the run — pure push trigger relies on the contributor's branch being on this repo and on the diff between two pushed SHAs actually touching the path filter, which fails silently when a force-push lands on the same tree.
1 parent 180a9a3 commit 30ef459

1 file changed

Lines changed: 84 additions & 0 deletions

File tree

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: "Clients Ruby: Tests"
2+
3+
on:
4+
push:
5+
paths:
6+
- 'clients/**'
7+
- 'commons/swagger/**'
8+
- '.github/workflows/clients-ruby-tests.yml'
9+
pull_request:
10+
paths:
11+
- 'clients/**'
12+
- 'commons/swagger/**'
13+
- '.github/workflows/clients-ruby-tests.yml'
14+
15+
jobs:
16+
commons:
17+
name: commons (RSpec)
18+
runs-on: ubuntu-latest
19+
defaults:
20+
run:
21+
working-directory: clients/ruby/commons
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
ruby: ['3.2', '3.3']
26+
steps:
27+
- uses: actions/checkout@v6
28+
- uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: ${{ matrix.ruby }}
31+
bundler-cache: true
32+
working-directory: clients/ruby/commons
33+
- run: bundle exec rspec
34+
35+
api_entreprise:
36+
name: api_entreprise (RSpec)
37+
runs-on: ubuntu-latest
38+
defaults:
39+
run:
40+
working-directory: clients/ruby/api_entreprise
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
ruby: ['3.2', '3.3']
45+
steps:
46+
- uses: actions/checkout@v6
47+
- uses: ruby/setup-ruby@v1
48+
with:
49+
ruby-version: ${{ matrix.ruby }}
50+
bundler-cache: true
51+
working-directory: clients/ruby/api_entreprise
52+
- run: bundle exec rspec
53+
54+
api_particulier:
55+
name: api_particulier (RSpec)
56+
runs-on: ubuntu-latest
57+
defaults:
58+
run:
59+
working-directory: clients/ruby/api_particulier
60+
strategy:
61+
fail-fast: false
62+
matrix:
63+
ruby: ['3.2', '3.3']
64+
steps:
65+
- uses: actions/checkout@v6
66+
- uses: ruby/setup-ruby@v1
67+
with:
68+
ruby-version: ${{ matrix.ruby }}
69+
bundler-cache: true
70+
working-directory: clients/ruby/api_particulier
71+
- run: bundle exec rspec
72+
73+
sync_check:
74+
name: sync_commons & scaffold_resources freshness
75+
runs-on: ubuntu-latest
76+
steps:
77+
- uses: actions/checkout@v6
78+
- uses: ruby/setup-ruby@v1
79+
with:
80+
ruby-version: '3.3'
81+
- name: Verify vendored commons is up to date
82+
run: clients/ruby/bin/sync_commons --check
83+
- name: Verify scaffolded resources are up to date
84+
run: clients/ruby/bin/scaffold_resources --api all --check

0 commit comments

Comments
 (0)