mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
717aeffae8
* feat: leverage cache to prevent unnecessary pushing and building * fix: combine test build and test suite to leverage cache * fix: revert inadvertently changed parts * fix: review-requested changes * fix: update test tags to use static ci tag
30 lines
705 B
YAML
30 lines
705 B
YAML
name: "Test Merge Requests"
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
- name: Build image locally
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile
|
|
build-args: |
|
|
VCS_REF=${{ github.sha }}
|
|
VCS_VER=${{ github.ref }}
|
|
platforms: linux/amd64
|
|
load: true
|
|
tags: mailserver-testing:ci
|
|
- name: Run test suite
|
|
run: >
|
|
NAME=mailserver-testing:ci
|
|
bash -c 'make generate-accounts tests'
|
|
env:
|
|
CI: true
|