-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.01 KB
/
deployment.yml
File metadata and controls
49 lines (44 loc) · 1.01 KB
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
46
47
48
49
name: Test Workflow
on:
push:
branches:
- main
- develop
workflow_dispatch:
pull_request:
types: [opened, closed]
jobs:
# Detekt:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Code
# uses: actions/checkout@v3
# - name: Run Detekt
# uses: natiginfo/action-detekt-all@1.22.0
Lint:
# needs: Detekt
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Run Lint
run: ./gradlew lint
Test:
needs: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Run tests
run: ./gradlew test
Build:
needs: Test # it will be run after test job, we can use a list of jobs here.
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Build App
uses: sparkfabrik/android-build-action@v1.0.0
with:
project-path: ./
output-path: my-app.apk