-
Notifications
You must be signed in to change notification settings - Fork 48
45 lines (41 loc) · 1.39 KB
/
Copy pathtest.yml
File metadata and controls
45 lines (41 loc) · 1.39 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
name: Test
on:
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
- name: Cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
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/setup-java@4b1b3d4a82f726de9ba1945f8c6967b67caf5dcd # v2.2.0
with:
distribution: 'adopt'
java-version: '11'
- name: Install Ruby
uses: ruby/setup-ruby@57d46d78b7d959dc4a248024a29bb17d4e357e5c # v1.81.0
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@77eaa4f1c608a7d68b38af4e3f739dcd8cba273e # v3
with:
status: ${{ job.status }}
fields: repo,action,ref,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()