Skip to content

Add github CI workflow for formatting/lint checks #2

Add github CI workflow for formatting/lint checks

Add github CI workflow for formatting/lint checks #2

Workflow file for this run

name: Check

Check failure on line 1 in .github/workflows/Check.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/Check.yaml

Invalid workflow file

`pull_requests` is not a valid event name
on:
push:
branches:
- main
pull_requests:
branches:
- main
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
distribution: zulu
cache: 'gradle'
- name: Check formatting
run: ./gradlew spotlessCheck lintRelease --stacktrace
- name: Upload build reports
if: always()
uses: actions/upload-artifact@v2
with:
name: build-reports
path: app/build/reports