-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.26 KB
/
ci-pull-request-validation.yml
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
name: Antibytes CI - Pull-Request Validation
on:
pull_request:
types: [opened, synchronize, edited, reopened]
branches:
- main
- release/*
- core/*
- plugin/*
- bugfix/*
workflow_dispatch:
jobs:
pull-request-validation:
runs-on: macos-latest
concurrency:
group: validation-${{ github.head_ref }}
cancel-in-progress: true
env:
PACKAGE_REGISTRY_UPLOAD_USERNAME: ${{ secrets.PACKAGE_REGISTRY_UPLOAD_USERNAME }}
PACKAGE_REGISTRY_UPLOAD_TOKEN: ${{ secrets.PACKAGE_REGISTRY_UPLOAD_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- uses: actions/setup-java@v2
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '11'
- name: Cleanup
run: ./gradlew clean
- name: Create DB
run: ./gradlew generateCommonMainWikibaseDataBaseInterface
- name: Lint
run: ./gradlew spotlessCheck
- name: Build
run: ./gradlew build
- name: Run Instrumented Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew :app-android:connectedCheck