-
-
Notifications
You must be signed in to change notification settings - Fork 3
73 lines (57 loc) · 1.68 KB
/
build-components.yml
File metadata and controls
73 lines (57 loc) · 1.68 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
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
name: Components CI
on:
push:
branches:
- main
pull_request:
paths-ignore:
- '.idea/**'
- '.gitattributes'
- '.gitignore'
- '**.md'
- 'LICENSE'
permissions:
contents: read
concurrency:
group: components-ci-${{ github.ref }}-${{ github.event.pull_request.number || 'no-pr' }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
assemble:
name: Assemble all components
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: Checkout the repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 1
- name: Show disk usage
uses: ./.github/actions/disk-usage
- name: Cleanup disk
uses: ./.github/actions/disk-cleanup
- name: Setup Gradle environment
uses: ./.github/actions/setup-gradle
with:
write-cache: ${{ github.ref == 'refs/heads/main' }}
- name: Prime configuration and dependency cache
run: ./gradlew --no-daemon help
- name: build all components
run: ./gradlew assemble
- name: Show disk usage
uses: ./.github/actions/disk-usage
test-junit:
name: Run JUnit tests for all components
runs-on: ubuntu-latest
timeout-minutes: 90
needs: [assemble]
steps:
- name: Checkout the repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 1
- name: Cleanup disk
uses: ./.github/actions/disk-cleanup
- name: Setup Gradle environment
uses: ./.github/actions/setup-gradle
- name: test all components
run: ./gradlew test