forked from linkedin/venice
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.45 KB
/
Copy pathUnitTests-core.yml
File metadata and controls
46 lines (44 loc) · 1.45 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
on:
workflow_call:
inputs:
arg:
required: true
type: string
artifact_suffix:
required: true
type: string
jobs:
reusable_job:
name: "UT & CodeCov"
strategy:
fail-fast: false
matrix:
jdk: [ 8, 11, 17 ]
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: ./.github/actions/gradle-test-setup
with:
java-version: ${{ matrix.jdk }}
- name: Run Unit Tests with Code Coverage
run: ./gradlew --parallel -x :internal:venice-avro-compatibility-test:test ${{ inputs.arg }}
- name: Package Build Artifacts
if: success() || failure()
shell: bash
run: |
mkdir ${{ inputs.artifact_suffix }}-artifacts
find . -path "**/build/reports/*" -or -path "**/build/test-results/*" > artifacts.list
rsync -R --files-from=artifacts.list . ${{ inputs.artifact_suffix }}-artifacts
tar -zcvf ${{ inputs.artifact_suffix }}-jdk${{ matrix.jdk }}-logs.tar.gz ${{ inputs.artifact_suffix }}-artifacts
- name: Upload Build Artifacts
if: success() || failure()
uses: actions/upload-artifact@v6
with:
name: ${{ inputs.artifact_suffix }}-jdk${{ matrix.jdk }}
path: ${{ inputs.artifact_suffix }}-jdk${{ matrix.jdk }}-logs.tar.gz
retention-days: 30