diff --git a/.github/workflows/pull-request-intergration.yml b/.github/workflows/pull-request-intergration.yml index c97fbe98d..2d980e3a4 100644 --- a/.github/workflows/pull-request-intergration.yml +++ b/.github/workflows/pull-request-intergration.yml @@ -22,10 +22,8 @@ permissions: pull-requests: write jobs: - setup: + build-and-test: runs-on: ubuntu-latest - outputs: - cache-key: ${{ steps.cache-dependencies.outputs.cache-key }} steps: - uses: actions/checkout@v4 @@ -37,7 +35,6 @@ jobs: distribution: 'corretto' - name: Caching Dependencies - id: cache-dependencies uses: actions/cache@v3 with: path: | @@ -55,48 +52,20 @@ jobs: with: python-version: 3.8 - build: - needs: setup - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: 'corretto' - - run: touch ./src/main/resources/application-secret.properties - - run: echo "${{ secrets.APPLICATION_SECRET }}" > ./src/main/resources/application-secret.properties - - run: cat ./src/main/resources/application-secret.properties + - name: Create application-secret.properties + run: | + touch ./src/main/resources/application-secret.properties + echo "${{ secrets.APPLICATION_SECRET }}" > ./src/main/resources/application-secret.properties + cat ./src/main/resources/application-secret.properties + - name: Build with Gradle run: ./gradlew build -x test - - test: - needs: [ setup, build ] - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: 'corretto' - - run: touch ./src/main/resources/application-secret.properties - - run: echo "${{ secrets.APPLICATION_SECRET }}" > ./src/main/resources/application-secret.properties - - run: cat ./src/main/resources/application-secret.properties + - name: Test with Gradle run: ./gradlew test - report: - needs: test - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - name: Report Test Results uses: EnricoMi/publish-unit-test-result-action@v2 - if: ${{ always() }} + if: always() with: files: build/test-results/**/*.xml