Skip to content

Commit

Permalink
CI with ActionMailer
Browse files Browse the repository at this point in the history
Set Ruby version for CI

Run the ActionMailer tests, not mail

CD into correct directory
  • Loading branch information
lewispb authored and jeremy committed Oct 22, 2021
1 parent 78321e7 commit 6e5db59
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,21 @@ jobs:
run: bundle install
- name: Run tests
run: bundle exec rake spec
actionmailer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3
bundler-cache: true
- name: Setup mail with ActionMailer edge
run: |
git clone --depth=1 https://github.com/rails/rails.git -b main
cd rails
echo -e "\ngem 'mail', path: '../'" >> Gemfile
bundle update --bundler --source mail
- name: Run ActionMailer tests
run: |
cd rails/actionmailer
bundle exec rake
10 changes: 0 additions & 10 deletions spec/travis-actionmailer.sh

This file was deleted.

0 comments on commit 6e5db59

Please sign in to comment.