This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 21
94 lines (84 loc) · 2.44 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: 'Test'
on:
pull_request:
jobs:
test: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- name: Checkout Gradle Build Cache
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
!~/.gradle/wrapper/dists/**/gradle*.zip
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
gradle-${{ runner.os }}-
- uses: actions/checkout@v4
- name: Set Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: |
11
15
17
- run: |
npm install
- run: |
npm run all
action-test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- name: Checkout Gradle Build Cache
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
!~/.gradle/wrapper/dists/**/gradle*.zip
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
gradle-${{ runner.os }}-
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: |
11
15
17
- name: Test Single Module Project in root
uses: ./
with:
use-gradlew: false
gradle-build-module: |-
:
gradle-build-configuration: |-
compileClasspath
- name: Test Multi Module Project in subfolder
uses: ./
with:
gradle-project-path: |-
gradle-example
gradle-build-module: |-
:app
:simple-app
:library-parent-parent
gradle-build-configuration: |-
debugCompileClasspath
gradle-build-configuration-mapping: |-
:library-child-2|compileClasspath
sub-module-mode: 'INDIVIDUAL_DEEP'
- name: Test Multi Module Project in subfolder - Without configuration filter
uses: ./
with:
gradle-project-path: |-
gradle-example
gradle-build-module: |-
:app
sub-module-mode: 'INDIVIDUAL_DEEP'