Skip to content

Commit 381446b

Browse files
committed
ci: add unit tests to the upstream workflow
because the authentication template is only on rails edge
1 parent a0783a7 commit 381446b

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/upstream.yml

+24-2
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,42 @@ on:
1414
- .github/workflows/upstream.yml # this file
1515

1616
jobs:
17+
tests:
18+
name: "tests (rails main)"
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
ruby: ["3.3"]
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: ${{matrix.ruby}}
29+
- run: |
30+
rm Gemfile.lock
31+
bundle remove actionmailer
32+
git clone --depth 1 --branch main https://github.com/rails/rails
33+
bundle add actionmailer --path=rails
34+
bundle add railties --path=rails
35+
bundle install
36+
- name: Run tests
37+
run: bin/test
38+
1739
user-journey:
1840
name: "user-journey (rails main)"
41+
runs-on: ${{matrix.plat}}-latest
1942
strategy:
2043
fail-fast: false
2144
matrix:
2245
plat: ["ubuntu", "windows", "macos"]
23-
runs-on: ${{matrix.plat}}-latest
2446
env:
2547
RAILSOPTS: --git=https://github.com/rails/rails --branch main
2648
steps:
2749
- uses: actions/checkout@v4
2850
- uses: ruby/setup-ruby@v1
2951
with:
30-
ruby-version: "3.2"
52+
ruby-version: "3.3"
3153
bundler: latest
3254
- run: test/integration/user_journey_test.sh
3355
shell: bash

0 commit comments

Comments
 (0)