Create GrapesCard #294
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: 🍇 Development PR check | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [ opened, synchronize, ready_for_review, reopened ] | |
jobs: | |
lint: | |
name: Run linter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 # Necessary to access local action | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "zulu" | |
java-version: '17' | |
- name: Checkout Grapes repo | |
uses: actions/checkout@v3 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/main' }} | |
- name: Launch lint | |
run: ./gradlew lint | |
test: | |
name: Run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 # Necessary to access local action | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "zulu" | |
java-version: '17' | |
- name: Checkout Grapes repo | |
uses: actions/checkout@v3 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/main' }} | |
- name: Launch unit tests | |
run: ./gradlew test | |
build: | |
name: Build grapes | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 # Necessary to access local action | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "zulu" | |
java-version: '17' | |
- name: Checkout Grapes repo | |
uses: actions/checkout@v3 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/main' }} | |
- name: Check detekt | |
run: ./gradlew detekt | |
- name: Launch clean build | |
run: ./gradlew clean assembleDebug |