Skip to content

Commit 6e5db59

Browse files
lewispbjeremy
authored andcommitted
CI with ActionMailer
Set Ruby version for CI Run the ActionMailer tests, not mail CD into correct directory
1 parent 78321e7 commit 6e5db59

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,21 @@ jobs:
3939
run: bundle install
4040
- name: Run tests
4141
run: bundle exec rake spec
42+
actionmailer:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v2
46+
- uses: ruby/setup-ruby@v1
47+
with:
48+
ruby-version: 3
49+
bundler-cache: true
50+
- name: Setup mail with ActionMailer edge
51+
run: |
52+
git clone --depth=1 https://github.com/rails/rails.git -b main
53+
cd rails
54+
echo -e "\ngem 'mail', path: '../'" >> Gemfile
55+
bundle update --bundler --source mail
56+
- name: Run ActionMailer tests
57+
run: |
58+
cd rails/actionmailer
59+
bundle exec rake

spec/travis-actionmailer.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)