<commit_before>name: basket-api

on:
  push:
    branches:
    - master
    - dev
    - feature/github-actions
    paths:
    - src/BuildingBlocks/*
    - src/Services/Basket/*
    - .github/workflows/basket-api.yml
env:
  REGISTRY_ENDPOINT: borjasanes
  SERVICES: basket-api

jobs:
  BuildContainersForPR_Linux:
    runs-on: ubuntu-16.04
    if: ${{ github.event_name == 'pull_request' }}
    steps:
    - name: Compose build ${{ env.SERVICES }}
      run: docker-compose build -f src/docker-compose.yml ${{ env.SERVICES }}
      shell: bash
      env:
        TAG: ${{ env.branch }}
        REGISTRY: ${{ env.REGISTRY_ENDPOINT }}
  BuildContainersForPR_Windows:
    runs-on: windows-2019
    if:  ${{ false }}
    # if: ${{ github.event_name == 'pull_request' }}
    steps:
    - name: Compose build ${{ env.SERVICES  }}
      run: docker-compose build -f src/docker-compose.yml ${{ env.SERVICES }}
      shell: pwsh
      env:
        TAG: ${{ env.branch }}
        REGISTRY: ${{ env.REGISTRY_ENDPOINT }}
        PLATFORM: win
        NODE_IMAGE: stefanscherer/node-windows:10
  BuildLinux:
    runs-on: ubuntu-latest
    if: ${{ github.event_name != 'pull_request' }}
    steps:
    - name: 'Checkout Github Action'
      uses: actions/checkout@master

    - name: Login to Container Registry
      uses: docker/login-action@v1
      with:
        registry:
        username: ${{ secrets.USERNAME }}
        password: ${{ secrets.PASSWORD }}

    - name: Set branch name as env variable
      run: |
        currentbranch=$(echo ${GITHUB_REF##*/})
        echo "running on $currentbranch"
        echo "BRANCH=$currentbranch" >> $GITHUB_ENV
      shell: bash

    - name: Compose build ${{ env.SERVICES }}
      run: |
        sudo -E docker-compose build ${{ env.SERVICES }}
        docker images
      working-directory: ./src
      shell: bash
      env:
        TAG: ${{ env.BRANCH }}
        REGISTRY: ${{ env.REGISTRY_ENDPOINT }}

    - name: Compose push ${{ env.SERVICES }}
      run: |
        docker images
        sudo -E docker-compose push ${{ env.SERVICES }}
      working-directory: ./src
      shell: bash
      env:
        TAG: ${{ env.BRANCH }}
        REGISTRY: ${{ env.REGISTRY_ENDPOINT }}
<commit_msg>Remove debug traces<commit_after>name: basket-api

on:
  push:
    branches:
    - master
    - dev
    - feature/github-actions
    paths:
    - src/BuildingBlocks/*
    - src/Services/Basket/*
    - .github/workflows/basket-api.yml
env:
  REGISTRY_ENDPOINT: borjasanes
  SERVICES: basket-api

jobs:
  BuildContainersForPR_Linux:
    runs-on: ubuntu-16.04
    if: ${{ github.event_name == 'pull_request' }}
    steps:
    - name: Compose build ${{ env.SERVICES }}
      run: docker-compose build -f src/docker-compose.yml ${{ env.SERVICES }}
      shell: bash
      env:
        TAG: ${{ env.branch }}
        REGISTRY: ${{ env.REGISTRY_ENDPOINT }}
  BuildContainersForPR_Windows:
    runs-on: windows-2019
    if:  ${{ false }}
    # if: ${{ github.event_name == 'pull_request' }}
    steps:
    - name: Compose build ${{ env.SERVICES  }}
      run: docker-compose build -f src/docker-compose.yml ${{ env.SERVICES }}
      shell: pwsh
      env:
        TAG: ${{ env.branch }}
        REGISTRY: ${{ env.REGISTRY_ENDPOINT }}
        PLATFORM: win
        NODE_IMAGE: stefanscherer/node-windows:10
  BuildLinux:
    runs-on: ubuntu-latest
    if: ${{ github.event_name != 'pull_request' }}
    steps:
    - name: 'Checkout Github Action'
      uses: actions/checkout@master

    - name: Login to Container Registry
      uses: docker/login-action@v1
      with:
        registry:
        username: ${{ secrets.USERNAME }}
        password: ${{ secrets.PASSWORD }}

    - name: Set branch name as env variable
      run: |
        currentbranch=$(echo ${GITHUB_REF##*/})
        echo "running on $currentbranch"
        echo "BRANCH=$currentbranch" >> $GITHUB_ENV
      shell: bash

    - name: Compose build ${{ env.SERVICES }}
      run: sudo -E docker-compose build ${{ env.SERVICES }}
      working-directory: ./src
      shell: bash
      env:
        TAG: ${{ env.BRANCH }}
        REGISTRY: ${{ env.REGISTRY_ENDPOINT }}

    - name: Compose push ${{ env.SERVICES }}
      run: sudo -E docker-compose push ${{ env.SERVICES }}
      working-directory: ./src
      shell: bash
      env:
        TAG: ${{ env.BRANCH }}
        REGISTRY: ${{ env.REGISTRY_ENDPOINT }}

{'fraction_non_alphanumeric': 0.135122838944495, 'fraction_numerical': 0.005004549590536852, 'mean_word_length': 2.225972120322817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7035976', 'n_tokens_mistral': 1571, 'n_tokens_neox': 1414, 'n_words': 316}