forked from tnj/android_apk
-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (49 loc) · 1.29 KB
/
build-and-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
46
47
48
49
50
51
52
53
name: Build and test
on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- master
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
task:
- rubocop
- rdoc
timeout-minutes: 5
name: "Execute ${{ matrix.task }}"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: ruby/setup-ruby@540484a3c0f308b08619664ec40bf6c371d172c3
with:
bundler-cache: true
- run: bundle exec rake ${{ matrix.task }}
build:
runs-on: ubuntu-latest
strategy:
matrix: # Use as the parameter injection
java-version:
- 11
buildtools-version:
- 35.0.0
timeout-minutes: 20
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: ruby/setup-ruby@540484a3c0f308b08619664ec40bf6c371d172c3
with:
bundler-cache: true
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b
with:
distribution: 'corretto'
java-version: ${{ matrix.java-version }}
- uses: ./.github/actions/setup-buildtools
with:
buildtools-version: ${{ matrix.buildtools-version }}
- run: bundle exec rake specs