Skip to content

[test]: cd pipeline test5 #22

[test]: cd pipeline test5

[test]: cd pipeline test5 #22

Workflow file for this run

name: 'spotless & Sonar analyze'
on:
workflow_call:
secrets:
GITHUB_TOKEN:

Check failure on line 6 in .github/workflows/CI_Check.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/CI_Check.yml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: true
SONAR_TOKEN:
required: true
jobs:
spotless-sonar:
runs-on: ubuntu-latest
steps:
- name: Check Out The Repository
uses: actions/checkout@v3
- name: JDK17 준비하기
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Gradle 애드온 준비
uses: gradle/gradle-build-action@v2
- name: Spotless Check
run: |
cd ./server
./gradlew spotlessCheck
cd ..
- name: SonarCloud scan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
cd ./server
./gradlew sonar --info --stacktrace
cd ..