build: debug #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: push | |
on: | |
push: | |
branches: [ 'main' ] | |
env: | |
JAVA_VERSION: '17' | |
DISTRIBUTION: 'temurin' | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
distribution: ${{ env.DISTRIBUTION }} | |
- name: Build with Gradle | |
run: | | |
./gradlew clean build -x test | |
working-directory: tracedin-sdk | |
checkstyle: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- uses: dbelyaev/action-checkstyle@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: github-check | |
checkstyle_config: google_checks.xml | |
unit-tests: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- name: Run Gradle tests | |
run: | | |
pwd && ls && ./gradlew test | |
codeql: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: java | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |