Skip to content

제발제발제발제제발ㅈㅂ #26

제발제발제발제제발ㅈㅂ

제발제발제발제제발ㅈㅂ #26

Workflow file for this run

name: 'sports_echo_ci'
on:
push:
branches: [ "feature/*", "hotfix" ]
pull_request:
branches: [ "dev1" ]
permissions:
contents: read
pull-requests: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4
# .properties file 생성
- name: application.properties 생성
run: |
touch ./src/main/resources/application-prod.ymlㅂ
touch ./src/main/resources/application-test.yml
echo "${{ secrets.PROD_YML }}" > ./application-prod.yml
echo "${{ secrets.TEST_PROD_YML }}" > ./application-test.yml
- name: Java Setup
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'oracle'
cache: gradle
- name: Build with Gradle
env:
SPRING_PROFILES_ACTIVE: test
run: |
./gradlew clean build
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: ${{ always() }}
with:
files: build/test-results/**/*.xml
- name: Upload Jacoco Report
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: jacoco-report
path: build/reports/jacoco/test/html