-
Notifications
You must be signed in to change notification settings - Fork 69
47 lines (43 loc) 路 1.02 KB
/
Copy pathbuild.yml
File metadata and controls
47 lines (43 loc) 路 1.02 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
name: Build
on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
jobs:
build:
name: "Run ${{ matrix.task }}${{ matrix.flavor }}"
runs-on: ubuntu-24.04
strategy:
matrix:
task:
- "detekt"
- ":sample:lint"
- ":sample:assemble"
flavor:
- "BundledDebug"
- "UnbundledDebug"
include:
- task: "test"
steps:
- name: "Checkout repository"
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: "Setup Java & Gradle environment"
uses: ./.github/actions/setup
- name: "Execute Gradle task"
run: ./gradlew ${{ matrix.task }}${{ matrix.flavor }}
all-checks-passed:
name: "Final Status Check"
runs-on: ubuntu-slim
if: always()
needs: build
steps:
- name: "Validate Matrix results"
run: |
if [ "${{ needs.build.result }}" != "success" ]; then
exit 1
fi