-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (38 loc) · 876 Bytes
/
build.yml
File metadata and controls
45 lines (38 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Android CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Lint Code
uses: github/super-linter@v4
env:
DEFAULT_BRANCH: main
DISABLE_ERRORS: true
FILTER_REGEX_EXCLUDE: gradlew
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Execute permission
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build