-
-
Notifications
You must be signed in to change notification settings - Fork 542
53 lines (49 loc) · 1.85 KB
/
Copy pathcombine_and_report.yml
File metadata and controls
53 lines (49 loc) · 1.85 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
on:
workflow_call:
jobs:
combine_and_report:
runs-on: ubuntu-latest
env:
AZURE_STORAGE_KEY: ${{ secrets.STORAGE_ACCESS_KEY }}
AZURE_STORAGE_ACCOUNT: ${{ secrets.ACCOUNT_NAME }}
STORAGE_CONTAINER: ${{ secrets.STORAGE_CONTAINER }}
steps:
- name: Checkout Project
if: ${{ !cancelled() }}
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Download artifacts
if: ${{ !cancelled() }}
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
path: artifacts
- name: Decompress chunk test reports
if: ${{ !cancelled() }}
run: |
find artifacts -name "test_reports*.zip" -exec unzip -d test_reports {} \;
find test_reports -name "**/test_reports*.zip" -exec unzip -d test_reports {} \;
- name: Merge parallel runtime log parts
if: ${{ !cancelled() && env.AZURE_STORAGE_KEY != '' }}
run: |
cat artifacts/**/parallel_runtime_rspec*.log > parallel_runtime.log
- name: Upload log file to Azure Blob Storage
if: ${{ !cancelled() && env.AZURE_STORAGE_KEY != '' }}
run: |
az storage blob upload \
-c $STORAGE_CONTAINER \
--file parallel_runtime.log \
-n parallel_runtime.log \
--overwrite true
- name: Test Summary
id: test_summary
uses: test-summary/action@37b508cfee6d4d080eedd00b5bb240a6a784a6a5 # v2
with:
paths: |
test_reports/**/rspec*.xml
- name: Set job status
if: ${{ steps.test_summary.outputs.failed > 0 }}
uses: actions/github-script@373c709c69115d41ff229c7e5df9f8788daa9553 # v9
with:
script: |
core.setFailed('There are test failures')