-
Notifications
You must be signed in to change notification settings - Fork 91
89 lines (76 loc) · 2.31 KB
/
check-ci.yml
File metadata and controls
89 lines (76 loc) · 2.31 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Check CI
on:
pull_request:
branches: [ 'main', 'rc/v*' ]
push:
branches: [ 'main', 'check/**', 'release/v*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-24.04
outputs:
non-docs: ${{ steps.filter.outputs.non-docs }}
steps:
# Must checkout for push, but not pull_request according to the action
- name: Checkout
if: github.event_name != 'pull_request'
uses: actions/checkout@v5
- name: Check for non-docs changes
id: filter
uses: dorny/paths-filter@v3
with:
filters: |
non-docs:
- '!docs/**'
checks:
runs-on: ubuntu-24.04
needs: changes
if: ${{ needs.changes.outputs.non-docs == 'true' || startsWith(github.ref, 'refs/heads/release/v') }}
steps:
- name: Free Disk Space
uses: endersonmenezes/free-disk-space@v2
with:
remove_haskell: true
remove_folders: "/usr/share/swift /usr/share/miniconda /usr/share/az* /usr/local/share/chromium /usr/local/share/powershell /usr/local/julia /usr/local/aws-cli /usr/share/gradle"
testing: false
- name: Starting available disk space
run: df -h
- name: Checkout
uses: actions/checkout@v5
with:
lfs: true
- name: Setup JDKs
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: |
21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
- name: Setup gradle properties
run: |
.github/scripts/gradle-properties.sh 21 >> gradle.properties
cat gradle.properties
- name: Check
run: ./gradlew --scan --continue check
- name: Run df -h after build
run: df -h
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: check-ci-results
path: |
**/build/test-results/**
**/build/reports/tests/**
- name: Upload JVM Error Logs
uses: actions/upload-artifact@v4
if: failure()
with:
name: check-ci-jvm-err
path: |
**/*_pid*.log
**/core.*
if-no-files-found: ignore