Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
🔀 Merge pull request #117 from vinceglb/improve-run-checks-ga
Browse files Browse the repository at this point in the history
Improve run-checks.yml Github Action
  • Loading branch information
vinceglb authored Mar 6, 2024
2 parents 8ede27b + 8eeb8a0 commit a963f18
Showing 1 changed file with 39 additions and 11 deletions.
50 changes: 39 additions & 11 deletions .github/workflows/run-checks.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,52 @@
name: Run checks

on:
pull_request
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- name: Checkout
uses: actions/checkout@v4

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Configure JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/[email protected]

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build project
uses: gradle/[email protected]
with:
arguments: build
- name: Run Android lint
uses: gradle/[email protected]
run: ./gradlew build

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Configure JDK
uses: actions/setup-java@v4
with:
arguments: lintDebug
java-version: '17'
distribution: 'adopt'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Lint project
run: ./gradlew lint

0 comments on commit a963f18

Please sign in to comment.