split ci
Signed-off-by: André Bauer <monotek23@gmail.com>
This commit is contained in:
parent
9eda319ed3
commit
73a4fbd453
26
.github/workflows/ci-remote-image.yaml
vendored
Normal file
26
.github/workflows/ci-remote-image.yaml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '.env'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run-remote-image-docker-compose:
|
||||||
|
timeout-minutes: 20
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- 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
|
28
.github/workflows/ci.yaml
vendored
28
.github/workflows/ci.yaml
vendored
@ -10,6 +10,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Codespell
|
- name: Codespell
|
||||||
uses: codespell-project/actions-codespell@master
|
uses: codespell-project/actions-codespell@master
|
||||||
with:
|
with:
|
||||||
@ -21,7 +22,8 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: lint zammad docker-compose file
|
- name: lint zammad docker-compose file
|
||||||
run: docker-compose config
|
run: docker-compose config
|
||||||
|
|
||||||
@ -30,6 +32,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Lint Code Base
|
- name: Lint Code Base
|
||||||
uses: github/super-linter@v3
|
uses: github/super-linter@v3
|
||||||
env:
|
env:
|
||||||
@ -45,31 +48,16 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: build docker containers
|
- name: build docker containers
|
||||||
run: .github/docker-image-build.sh
|
run: .github/docker-image-build.sh
|
||||||
|
|
||||||
- name: run docker-compose up
|
- 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
|
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
|
|
||||||
|
|
||||||
run-remote-image-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: pull docker-compose images
|
|
||||||
run: docker-compose pull
|
|
||||||
- name: run docker-compose up
|
|
||||||
run: docker-compose up --detach
|
|
||||||
- name: add autowizard file
|
- name: add autowizard file
|
||||||
run: docker cp .github/auto_wizard.json zammad-docker-compose_zammad-railsserver_1:/opt/zammad
|
run: docker cp .github/auto_wizard.json zammad-docker-compose_zammad-railsserver_1:/opt/zammad
|
||||||
|
|
||||||
- name: run tests
|
- name: run tests
|
||||||
run: .github/tests.sh
|
run: .github/tests.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user