2022-04-25 21:13:34 +00:00
|
|
|
---
|
2020-02-26 16:54:14 +00:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
2020-03-07 03:19:55 +00:00
|
|
|
lint-docker-compose-file:
|
2022-11-04 00:09:50 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2020-03-07 03:19:55 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-25 21:13:34 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-03-19 12:13:10 +00:00
|
|
|
|
2020-03-07 03:19:55 +00:00
|
|
|
- name: lint zammad docker-compose file
|
|
|
|
run: docker-compose config
|
|
|
|
|
2020-12-07 12:41:12 +00:00
|
|
|
super-linter:
|
2022-11-04 00:09:50 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2020-12-07 12:41:12 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout Code
|
2022-04-25 21:13:34 +00:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-03-19 12:13:10 +00:00
|
|
|
|
2020-12-07 12:41:12 +00:00
|
|
|
- name: Lint Code Base
|
2022-04-25 21:13:34 +00:00
|
|
|
uses: github/super-linter/slim@v4
|
2020-12-07 12:41:12 +00:00
|
|
|
env:
|
|
|
|
DEFAULT_BRANCH: master
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-04-25 21:13:34 +00:00
|
|
|
LINTER_RULES_PATH: .github/linters
|
|
|
|
VALIDATE_ALL_CODEBASE: false
|
2021-10-06 12:16:13 +00:00
|
|
|
VALIDATE_JSCPD: false
|
|
|
|
|
2020-03-06 17:50:38 +00:00
|
|
|
build-and-run-docker-compose:
|
2020-12-07 12:41:12 +00:00
|
|
|
needs:
|
2020-03-07 03:19:55 +00:00
|
|
|
- lint-docker-compose-file
|
2020-12-07 12:41:12 +00:00
|
|
|
- super-linter
|
2020-03-07 12:21:46 +00:00
|
|
|
timeout-minutes: 20
|
2022-11-04 00:09:50 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2020-02-26 16:54:14 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-25 21:13:34 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-03-19 12:13:10 +00:00
|
|
|
|
2020-03-06 17:50:38 +00:00
|
|
|
- name: build docker containers
|
2020-12-07 12:41:12 +00:00
|
|
|
run: .github/docker-image-build.sh
|
2021-03-19 12:13:10 +00:00
|
|
|
|
2020-02-26 23:33:46 +00:00
|
|
|
- name: run docker-compose up
|
2021-03-18 20:53:46 +00:00
|
|
|
run: docker-compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.override-local.yml up --detach
|
2020-03-07 12:21:46 +00:00
|
|
|
|
|
|
|
- name: add autowizard file
|
|
|
|
run: docker cp .github/auto_wizard.json zammad-docker-compose_zammad-railsserver_1:/opt/zammad
|
2021-03-19 12:13:10 +00:00
|
|
|
|
2020-03-07 12:21:46 +00:00
|
|
|
- name: run tests
|
|
|
|
run: .github/tests.sh
|