5bcd41057a
* update images Signed-off-by: André Bauer <andre.bauer@staffbase.com> * remove unneeded dummey dockerfile Signed-off-by: André Bauer <andre.bauer@staffbase.com> * fix superlinter Signed-off-by: André Bauer <andre.bauer@staffbase.com> * fix stale.yml Signed-off-by: André Bauer <andre.bauer@staffbase.com> * update version Signed-off-by: André Bauer <andre.bauer@staffbase.com> * remove codespell Signed-off-by: André Bauer <andre.bauer@staffbase.com> * add fetcfh depth Signed-off-by: André Bauer <andre.bauer@staffbase.com> * fix codepsell removal Signed-off-by: André Bauer <andre.bauer@staffbase.com> * enable VALIDATE_ALL_CODEBASE Signed-off-by: André Bauer <andre.bauer@staffbase.com>
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
---
|
|
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
|
|
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
|