-
Notifications
You must be signed in to change notification settings - Fork 49
45 lines (41 loc) · 1.18 KB
/
test.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
name: Test
on:
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Cache
uses: actions/[email protected]
with:
path: |
"$HOME/.gradle/caches/"
"$HOME/.gradle/wrapper/"
"$HOME/.android/build-cache"
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
- name: set up JDK 11
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '11'
- name: Install Ruby
uses: ruby/[email protected]
with:
ruby-version: 2.6.3
bundler-cache: true
- name: Fastlane
run: FASTLANE_SKIP_UPDATE_CHECK=1 bundle exec fastlane test
- name: Clean up
run: |
rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- name: Notify Slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,action,ref,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()