Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

[WEAV-000] 개발서버 CD 자동 트리깅 수정 (#264) #883

[WEAV-000] 개발서버 CD 자동 트리깅 수정 (#264)

[WEAV-000] 개발서버 CD 자동 트리깅 수정 (#264) #883

name: Unit Test Runner
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
Test-And-Analyze:
name: Run unit test and static analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: corretto
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build And analyze Http Server
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
AWS_REGION: ${{ secrets.AWS_REGION }}
run: ./gradlew clean test testCodeCoverageReport sonar --info