zammad-docker-compose/.github/workflows/ci.yaml
André Bauer 04e6220993
added codespell & superlinter / updated versions (#183)
* added codespell linter
* added superlinter
* raised env version to 3.6.0-20
* updated memcache container
* updated postgres container
* some readme fixes
* use fixed ubuntu 20.04 version for all github action steps
2020-12-07 13:41:12 +01:00

78 lines
2.1 KiB
YAML

name: ci
on:
pull_request:
jobs:
codespell:
name: codespell
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Codespell
uses: codespell-project/actions-codespell@master
with:
skip: .git
check_filenames: true
check_hidden: true
lint-docker-compose-file:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: lint zammad docker-compose file
run: docker-compose config
super-linter:
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Lint Code Base
uses: github/super-linter@v3
env:
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-and-run-docker-compose:
needs:
- codespell
- lint-docker-compose-file
- super-linter
timeout-minutes: 20
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: build docker containers
run: .github/docker-image-build.sh
- name: use images build by ci
run: sed -i -e 's#${IMAGE_REPO}:##g' -e 's#${VERSION}##g' docker-compose.yml
- name: run docker-compose up
run: docker-compose up --detach
- name: add autowizard file
run: docker cp .github/auto_wizard.json zammad-docker-compose_zammad-railsserver_1:/opt/zammad
- name: run tests
run: .github/tests.sh
run-remote-image-docker-compose:
needs:
- codespell
- lint-docker-compose-file
- super-linter
timeout-minutes: 10
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: pull docker-compose images
run: docker-compose pull
- name: run docker-compose up
run: docker-compose up --detach
- name: add autowizard file
run: docker cp .github/auto_wizard.json zammad-docker-compose_zammad-railsserver_1:/opt/zammad
- name: run tests
run: .github/tests.sh