docker-mailserver/.github/workflows/test_merge_requests.yml
Frederic Werner d2124a6529
ci: exlude files from triggering workflows (#1804)
* ci: add paths-ignore

* fix: use explicit trigger paths

* fix: revert changes as every file should be linted
2021-02-11 09:48:45 +01:00

38 lines
845 B
YAML

name: "Test Merge Requests"
on:
pull_request:
paths:
- 'target/**'
- 'test/**'
- '.dockerignore'
- '.gitmodules'
- 'Dockerfile'
- 'setup.sh'
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