<commit_before>name: ci

on:
  pull_request:

jobs:
  lint-bash-scripts:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v1
      - name: Lint Bash scripts
        uses: docker://koalaman/shellcheck-alpine:v0.7.0
        with:
          args: .github/lint-scripts.sh

  lint-docker-file:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v1    
      - name: lint zammad dockerfile
        uses: brpaz/hadolint-action@master
        with:
          dockerfile: Dockerfile

  build-and-run-docker:
    timeout-minutes: 30
    runs-on: ubuntu-latest
    needs: 
      - lint-bash-scripts
      - lint-docker-file
    steps:
      - name: Checkout
        uses: actions/checkout@v1
      - name: build docker container
        run: docker build --pull --no-cache --build-arg BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" -t zammad .
      - name: docker run
        run: docker run -d -p 80:80 --name zammad-test --rm zammad
      - name: add autowizard file
        run: docker cp .github/auto_wizard.json zammad-test:/opt/zammad
      - name: run tests
        run: .github/tests.sh

  run-remote-docker-image:
    timeout-minutes: 10
    runs-on: ubuntu-latest
    needs:
      - lint-bash-scripts
      - lint-docker-file
    steps:
      - name: Checkout
        uses: actions/checkout@v1
      - name: docker pull image
        run: docker pull zammad/zammad:latest
      - name: docker run
        run: docker run -d -p 80:80 --name zammad-test --rm zammad/zammad:latest
      - name: add autowizard file
        run: docker cp .github/auto_wizard.json zammad-test:/opt/zammad
      - name: run tests
        run: .github/tests.sh<commit_msg>Bump actions/checkout from 1 to 3 (#60)<commit_after>name: ci

on:
  pull_request:

jobs:
  lint-bash-scripts:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Lint Bash scripts
        uses: docker://koalaman/shellcheck-alpine:v0.7.0
        with:
          args: .github/lint-scripts.sh

  lint-docker-file:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3    
      - name: lint zammad dockerfile
        uses: brpaz/hadolint-action@master
        with:
          dockerfile: Dockerfile

  build-and-run-docker:
    timeout-minutes: 30
    runs-on: ubuntu-latest
    needs: 
      - lint-bash-scripts
      - lint-docker-file
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: build docker container
        run: docker build --pull --no-cache --build-arg BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" -t zammad .
      - name: docker run
        run: docker run -d -p 80:80 --name zammad-test --rm zammad
      - name: add autowizard file
        run: docker cp .github/auto_wizard.json zammad-test:/opt/zammad
      - name: run tests
        run: .github/tests.sh

  run-remote-docker-image:
    timeout-minutes: 10
    runs-on: ubuntu-latest
    needs:
      - lint-bash-scripts
      - lint-docker-file
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: docker pull image
        run: docker pull zammad/zammad:latest
      - name: docker run
        run: docker run -d -p 80:80 --name zammad-test --rm zammad/zammad:latest
      - name: add autowizard file
        run: docker cp .github/auto_wizard.json zammad-test:/opt/zammad
      - name: run tests
        run: .github/tests.sh
{'fraction_non_alphanumeric': 0.11232091690544413, 'fraction_numerical': 0.012034383954154728, 'mean_word_length': 1.923785594639866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4478949', 'n_tokens_mistral': 1293, 'n_tokens_neox': 1159, 'n_words': 289}