Skip to content

Commit

Permalink
Update pull-request-intergration.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
YeaChan05 authored Feb 9, 2024
1 parent 5a1e91e commit 22eb34d
Showing 1 changed file with 9 additions and 40 deletions.
49 changes: 9 additions & 40 deletions .github/workflows/pull-request-intergration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -37,7 +35,6 @@ jobs:
distribution: 'corretto'

- name: Caching Dependencies
id: cache-dependencies
uses: actions/cache@v3
with:
path: |
Expand All @@ -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

0 comments on commit 22eb34d

Please sign in to comment.