fix: kitsu api change #1478
Workflow file for this run
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: Pre-Merge | |
on: | |
pull_request: | |
jobs: | |
assemble: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
- name: setup gradle cache | |
uses: gradle/actions/setup-gradle@v3 | |
- name: run assemble | |
run: ./gradlew assemble | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
- name: setup gradle cache | |
uses: gradle/actions/setup-gradle@v3 | |
- name: run kover | |
run: ./gradlew koverXmlReport | |
- uses: codecov/codecov-action@v4 | |
- name: publish results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
files: ./**/build/test-results/**/*.xml | |
action_fail: true | |
action_fail_on_inconclusive: true | |
ktlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
- name: setup gradle cache | |
uses: gradle/actions/setup-gradle@v3 | |
- name: run ktlintCheck | |
run: ./gradlew ktlintCheck | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 100 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
- name: setup gradle cache | |
uses: gradle/actions/setup-gradle@v3 | |
- name: run lint | |
run: ./gradlew :app:lint | |
- name: run detektCheck | |
run: ./gradlew detektCheck | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' | |
bundler-cache: true | |
- name: danger | |
run: bundle exec danger | |
env: | |
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} |