Skip to content

Set version 2.0.0

Set version 2.0.0 #34

name: Integration tests
on:
pull_request:
push:
branches:
- v2
jobs:
rails-5:
name: Rails 5 mailer previews
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and cache
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
build-args: |
RAILS_VERSION=5.2.8.1
MAIL_NOTIFY_BRANCH=${{ github.ref }}
push: false
load: true
tags: mail-notify-integration-rails-5:latest
cache-from: type=gha
cache-to: type=gha,mode=min
-
name: Run integration tests
run: docker run --rm -e "NOTIFY_API_KEY=${{ secrets.NOTIFY_API_KEY }}" mail-notify-integration-rails-5:latest
rails-6:
name: Rails 6 mailer previews
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and cache
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
build-args: |
RAILS_VERSION=6.1.7.6
MAIL_NOTIFY_BRANCH=${{ github.ref }}
push: false
load: true
tags: mail-notify-integration-rails-6:latest
cache-from: type=gha
cache-to: type=gha,mode=min
-
name: Run integration tests
run: docker run --rm -e "NOTIFY_API_KEY=${{ secrets.NOTIFY_API_KEY }}" mail-notify-integration-rails-6:latest
rails-7:
name: Rails 7 mailer previews
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and cache
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
build-args: |
RAILS_VERSION=7.1.3.2
MAIL_NOTIFY_BRANCH=${{ github.ref }}
push: false
load: true
tags: mail-notify-integration-rails-7:latest
cache-from: type=gha
cache-to: type=gha,mode=min
-
name: Run integration tests
env:
NOTIFY_API_KEY: ${{ secrets.NOTIFY_API_KEY }}
run: docker run --rm -e "NOTIFY_API_KEY=$NOTIFY_API_KEY" mail-notify-integration-rails-7:latest