2021-01-16 09:16:05 +00:00
|
|
|
name: "Test Merge Requests"
|
|
|
|
|
2021-02-11 08:48:45 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'target/**'
|
|
|
|
- 'test/**'
|
|
|
|
- '.dockerignore'
|
|
|
|
- '.gitmodules'
|
|
|
|
- 'Dockerfile'
|
|
|
|
- 'setup.sh'
|
2021-01-16 09:16:05 +00:00
|
|
|
|
|
|
|
jobs:
|
2021-01-16 14:34:31 +00:00
|
|
|
build-and-test:
|
|
|
|
runs-on: ubuntu-20.04
|
2021-01-16 09:16:05 +00:00
|
|
|
steps:
|
2021-01-17 16:41:47 +00:00
|
|
|
- name: Checkout
|
2021-01-16 09:16:05 +00:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-01-17 16:41:47 +00:00
|
|
|
- name: Build image locally
|
2021-05-12 09:48:11 +00:00
|
|
|
uses: docker/build-push-action@v2.4.0
|
2021-01-16 09:16:05 +00:00
|
|
|
with:
|
2021-01-17 16:41:47 +00:00
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
2021-01-16 09:16:05 +00:00
|
|
|
build-args: |
|
|
|
|
VCS_REF=${{ github.sha }}
|
|
|
|
VCS_VER=${{ github.ref }}
|
|
|
|
platforms: linux/amd64
|
2021-01-17 16:41:47 +00:00
|
|
|
load: true
|
|
|
|
tags: mailserver-testing:ci
|
|
|
|
- name: Run test suite
|
2021-01-16 14:34:31 +00:00
|
|
|
run: >
|
2021-01-17 16:41:47 +00:00
|
|
|
NAME=mailserver-testing:ci
|
2021-01-16 14:34:31 +00:00
|
|
|
bash -c 'make generate-accounts tests'
|
2021-01-16 09:16:05 +00:00
|
|
|
env:
|
|
|
|
CI: true
|