-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (38 loc) · 1.23 KB
/
merge-check.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
name: "Merge Checks"
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
build:
name: "Build Project"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-latest, ubuntu-latest ]
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
permissions:
contents: read
steps:
- name: "Checkout sources"
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: "Set up Java"
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4
with:
distribution: ${{ (runner.os == 'macOS' && runner.arch == 'ARM64') && 'zulu' || 'temurin' }}
java-version-file: '.java-version'
- name: "Setup gradle"
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4
- name: "Run Gradle tasks"
run: ./gradlew build
- name: "Upload 'Test Report (${{ matrix.os }})' artifact"
uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4
if: success() || failure()
with:
name: 'Test Report (${{ matrix.os }})'
path: |
build/reports/tests/allTests/