File tree Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Original file line number Diff line number Diff line change 17
17
apk --no-cache upgrade
18
18
apk --no-cache add gcc git libc-dev libc-utils libgcc linux-headers make bash \
19
19
musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf wget zlib
20
- - uses : actions/checkout@v2
20
+ - uses : actions/checkout@v4
21
21
- name : work around for permission issue
22
22
run : |
23
23
git config --global --add safe.directory /__w/gtplib/gtplib
Original file line number Diff line number Diff line change 24
24
apk --no-cache upgrade
25
25
apk --no-cache add gcc git libc-dev libc-utils libgcc linux-headers make bash \
26
26
musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf wget zlib
27
- - uses : actions/checkout@v2
27
+ - uses : actions/checkout@v4
28
28
- name : Build
29
29
run : rebar3 compile
30
30
- name : Run tests
@@ -36,15 +36,37 @@ jobs:
36
36
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
37
COVERALLS_FLAG_NAME : ${{ matrix.otp }}
38
38
run : DEBUG=1 rebar3 as test coveralls send || /bin/true
39
+ - name : Tar Test Output
40
+ if : ${{ always() }}
41
+ run : tar -cf - _build/test/logs/ | zstd -15 -o ct-logs-${{ matrix.otp }}.tar.zst
39
42
- name : Archive Test Output
40
43
if : ${{ always() }}
41
- uses : actions/upload-artifact@v2
44
+ uses : actions/upload-artifact@v4
42
45
with :
43
46
name : test-output-${{ matrix.otp }}
44
47
path : |
45
- _build/test/ logs/
46
- ! _build/test/logs/last
48
+ ct- logs-${{ matrix.otp }}.tar.zst
49
+ _build/test/logs/*/junit_report.xml
47
50
51
+ publish-test-results :
52
+ name : " Publish Tests Results"
53
+ needs : test
54
+ runs-on : ubuntu-latest
55
+ permissions :
56
+ checks : write
57
+ pull-requests : write
58
+ contents : read
59
+ issues : read
60
+ if : always()
61
+ steps :
62
+ - name : Download Artifacts
63
+ uses : actions/download-artifact@v4
64
+ with :
65
+ path : artifacts
66
+ - name : Publish Test Results
67
+ uses : EnricoMi/publish-unit-test-result-action@v2
68
+ with :
69
+ files : " artifacts/**/junit_report.xml"
48
70
slack :
49
71
needs : test
50
72
runs-on : ubuntu-22.04
You can’t perform that action at this time.
0 commit comments