name: user-registration-application-pipeline

on: [push]

jobs:
  pipeline:
    runs-on: ubuntu-latest

    steps:
    - name: checkout
      uses: actions/checkout@v1

    - name: setup java
      uses: actions/setup-java@v1
      with:
        java-version: '11'

    - name: Install application
      run: ./mvnw -pl user-registration-application -am install

    - name: German Acceptance Tests JBehave
      run: |
        cd user-registration-acceptancetest-jbehave
        ./mvnw integration-test

    - name: English Acceptance Tests JBehave
      run: |
        cd user-registration-acceptancetest-jbehave-english
        ./mvnw integration-test

    - name: Acceptance Tests Selenium
      run: |
        cd user-registration-acceptancetest-selenium
        ./mvnw test

    - name: Capacity Tests
      run: |
        cd user-registration-capacitytest-gatling
        ./mvnw test

    - name: Build Docker Image for Java
      run: |
        cd docker
	docker build -t java java && docker build -t user-registration user-registration

    - name: Build Docker Image for User Registration
      run: |
        cd docker
	docker build -t user-registration user-registration

    - name: Integration Test
      run: |
        cd user-registration-integrationtest
        image=user-registration docker-compose run test-client
name: user-registration-application-pipeline

on: [push]

jobs:
  pipeline:
    runs-on: ubuntu-latest

    steps:
    - name: checkout
      uses: actions/checkout@v1

    - name: setup java
      uses: actions/setup-java@v1
      with:
        java-version: '11'

    - name: Install application
      run: ./mvnw -pl user-registration-application -am install

    - name: German Acceptance Tests JBehave
      run: |
        cd user-registration-acceptancetest-jbehave
        ./mvnw integration-test

    - name: English Acceptance Tests JBehave
      run: |
        cd user-registration-acceptancetest-jbehave-english
        ./mvnw integration-test

    - name: Acceptance Tests Selenium
      run: |
        cd user-registration-acceptancetest-selenium
        ./mvnw test

    - name: Capacity Tests
      run: |
        cd user-registration-capacitytest-gatling
        ./mvnw test

    - name: Build Docker Image for Java
      run: |
        cd docker
        docker build -t java java && docker build -t user-registration user-registration

    - name: Build Docker Image for User Registration
      run: |
        cd docker
        docker build -t user-registration user-registration

    - name: Integration Test
      run: |
        cd user-registration-integrationtest
        image=user-registration docker-compose run test-client
Fix YAML syntax for CI build
Fix YAML syntax for CI build
