2020-02-26 16:54:14 +00:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint-bash-scripts:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Lint Bash scripts
|
|
|
|
uses: docker://koalaman/shellcheck-alpine:v0.7.0
|
|
|
|
with:
|
|
|
|
args: .github/lint-scripts.sh
|
|
|
|
|
2020-02-26 23:33:46 +00:00
|
|
|
lint-docker-files:
|
2020-02-26 16:54:14 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: lint-bash-scripts
|
2020-02-26 23:33:46 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: lint zammad dockerfile
|
|
|
|
uses: brpaz/hadolint-action@master
|
|
|
|
with:
|
|
|
|
dockerfile: containers/zammad-elasticsearch/Dockerfile
|
|
|
|
- name: lint elasticsearch dockerfile
|
|
|
|
uses: brpaz/hadolint-action@master
|
|
|
|
with:
|
|
|
|
dockerfile: containers/zammad-postgresql/Dockerfile
|
|
|
|
- name: lint postgresql dockerfile
|
|
|
|
uses: brpaz/hadolint-action@master
|
|
|
|
with:
|
|
|
|
dockerfile: containers/zammad/Dockerfile
|
|
|
|
|
|
|
|
test-docker-compose:
|
|
|
|
timeout-minutes: 30
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: lint-docker-files
|
2020-02-26 16:54:14 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
2020-02-26 23:33:46 +00:00
|
|
|
- name: pull container images
|
2020-02-26 16:54:14 +00:00
|
|
|
run: docker-compose pull
|
2020-02-26 23:33:46 +00:00
|
|
|
- name: run docker-compose up
|
|
|
|
run: docker-compose up --detach
|
|
|
|
- name: run tests
|
|
|
|
run: .github/tests.sh
|
|
|
|
|
|
|
|
|