diff --git a/.github/workflows/pull-request-intergration.yml b/.github/workflows/pull-request-intergration.yml index 6e32482e2..1de83a06a 100644 --- a/.github/workflows/pull-request-intergration.yml +++ b/.github/workflows/pull-request-intergration.yml @@ -47,9 +47,9 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - - run: touch ./src/main/resources/application-secret.properties - - run: echo "${{ secrets.SECRET_KEY }}" > ./src/main/resources/application-secret.properties - - run: cat ./src/main/resources/application-secret.properties + - run: touch ./src/main/resources/application-secret.yml + - run: echo "${{ secrets.SECRET_KEY }}" > ./src/main/resources/application-secret.yml + - run: cat ./src/main/resources/application-secret.yml - name: Grant execute permission for gradlew run: chmod +x gradlew @@ -70,9 +70,12 @@ jobs: with: java-version: 17 distribution: 'corretto' + - run: touch ./src/main/resources/application-secret.yml + - run: echo "${{ secrets.SECRET_KEY }}" > ./src/main/resources/application-secret.yml + - run: cat ./src/main/resources/application-secret.yml - name: Build with Gradle run: ./gradlew build -x test - + test: needs: [ setup, build ] runs-on: ubuntu-latest @@ -84,6 +87,9 @@ jobs: with: java-version: 17 distribution: 'corretto' + - run: touch ./src/main/resources/application-secret.yml + - run: echo "${{ secrets.SECRET_KEY }}" > ./src/main/resources/application-secret.yml + - run: cat ./src/main/resources/application-secret.yml - name: Test with Gradle run: ./gradlew test