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