Skip to content

feat: add tests

feat: add tests #17

Workflow file for this run

name: 'Continuous Integration'
on:
push:
branches: ['master']
pull_request:
branches: ['master']
workflow_call:
jobs:
push:
name: 'Run tests'
runs-on: 'ubuntu-latest'
permissions:
contents: 'write'
steps:
- name: 'Checkout code'
uses: 'actions/checkout@v4'
- name: 'Log in to the Container registry'
uses: 'docker/login-action@v3'
with:
username: '${{ secrets.REGISTRY_USERNAME }}'
password: '${{ secrets.REGISTRY_PASSWORD }}'
- name: 'Set up Docker Buildx'
uses: 'docker/setup-buildx-action@v3'
- name: 'Build'
uses: 'docker/build-push-action@v5'
with:
pull: true
push: false
tags: 'jeanberu/mailcatcher:latest'
platforms: 'linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8'
- name: 'Start mailcatcher'
run: 'docker run -d jeanberu/mailcatcher:latest'
- name: 'Install test dependencies'
run: 'gem install rspec net-smtp net-http'
- name: 'Run tests'
run: 'rspec spec/*'