-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (55 loc) · 1.73 KB
/
ci.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
Test_For_FastInflate:
runs-on: ubuntu-latest
steps:
- name: Clone project FastInflate
uses: actions/checkout@v3
with:
path: 'FastInflate'
- name: Fetch key file
uses: actions/checkout@v3
with:
token: ${{ secrets.TOKEN_FOR_GITHUB }}
repository: 'dreamgyf/key'
path: 'key'
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Prepare for Gradle
working-directory: 'FastInflate'
run: chmod +x gradlew
- name: Publish FastInflatePlugin to local maven
working-directory: 'FastInflate'
run: |
./gradlew :FastInflatePlugin:assemble
./gradlew :FastInflatePlugin:publishToMavenLocal
- name: Publish FastInflate to local maven
working-directory: 'FastInflate'
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_PATH: ${{ github.workspace }}/key/dreamgyf_6E5F7FAF_secret.gpg
run: |
./gradlew :FastInflate:assemble
./gradlew :FastInflate:publishToMavenLocal
- name: Do Unit Test for :Sample:app
working-directory: 'FastInflate/Sample'
run: |
chmod +x gradlew
./gradlew :app:test
- name: Unit Test Report
uses: asadmansr/[email protected]
if: ${{ always() }}