zammad-docker-compose/.github/workflows/ci.yaml

55 lines
1.3 KiB
YAML
Raw Permalink Normal View History

---
2020-02-26 16:54:14 +00:00
name: ci
on:
pull_request:
jobs:
lint-docker-compose-file:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: lint zammad docker-compose file
run: docker-compose config
super-linter:
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter/slim@v4
env:
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: .github/linters
VALIDATE_ALL_CODEBASE: false
VALIDATE_JSCPD: false
build-and-run-docker-compose:
needs:
- lint-docker-compose-file
- super-linter
timeout-minutes: 20
runs-on: ubuntu-20.04
2020-02-26 16:54:14 +00:00
steps:
- name: Checkout
uses: actions/checkout@v3
- name: build docker containers
run: .github/docker-image-build.sh
- name: run docker-compose up
run: docker-compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.override-local.yml 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