update build logic from upstream #38
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: Code Style Checking | |
on: | |
push: | |
pull_request: | |
jobs: | |
code_style_check: | |
runs-on: macos-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
fetch-depth: 0 | |
- name: Generate cache key | |
run: ./scripts/checksum.sh . checksum.txt | |
- name: Gradle cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches/modules-* | |
~/.gradle/caches/jars-* | |
~/.gradle/caches/build-cache-* | |
key: gradle-${{ hashFiles('checksum.txt') }} | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
- name: checking code style | |
env: | |
GT_USERNAME: ${{ github.actor }} | |
GT_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./gradlew --continue ktlintCheck |