Tech test danger Example #1086
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
# This workflow runs all the checks on pull requests | |
name: Pull Request Checks | |
on: pull_request | |
jobs: | |
pull-request-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
cache: gradle | |
- name: Run static analysis | |
run: make static_analysis | |
- name: Detekt to Danger | |
uses: danger/kotlin@1.3.1 | |
if: always() | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
dangerfile: ".danger/pr_detekt.df.kts" | |
args: "--failOnErrors --no-publish-check" | |
- name: Run unit tests | |
run: make unit_tests | |
- name: Build project | |
run: make compile_all |