14
14
runs-on : ubuntu-latest
15
15
strategy :
16
16
matrix :
17
- otp : [22.0.7, 22.1.8, 22. 2.8, 22.3.4.14, 23.0.4, 23.1.5.0, 23.2.1.0, 24.0.2]
17
+ otp : [22.2.8, 22.3.4.14, 23.0.4, 23.1.5.0, 23.2.1.0, 24.0.2]
18
18
container :
19
19
image : erlang:${{ matrix.otp }}-alpine
20
20
steps :
23
23
apk update
24
24
apk --no-cache upgrade
25
25
apk --no-cache add gcc git libc-dev libc-utils libgcc linux-headers make bash \
26
- musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf wget zlib
27
- - uses : actions/checkout@v2
26
+ musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf \
27
+ wget zlib zstd
28
+ - uses : actions/checkout@v4
28
29
- name : Build
29
30
run : rebar3 compile
30
31
- name : Run tests
@@ -36,18 +37,40 @@ jobs:
36
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
38
COVERALLS_FLAG_NAME : ${{ matrix.otp }}
38
39
run : DEBUG=1 rebar3 as test coveralls send || /bin/true
40
+ - name : Tar Test Output
41
+ if : ${{ always() }}
42
+ run : tar -cf - _build/test/logs/ | zstd -15 -o ct-logs-${{ matrix.otp }}.tar.zst
39
43
- name : Archive Test Output
40
44
if : ${{ always() }}
41
- uses : actions/upload-artifact@v2
45
+ uses : actions/upload-artifact@v4
42
46
with :
43
47
name : test-output-${{ matrix.otp }}
44
48
path : |
45
- _build/test/ logs/
46
- ! _build/test/logs/last
49
+ ct- logs-${{ matrix.otp }}.tar.zst
50
+ _build/test/logs/*/junit_report.xml
47
51
52
+ publish-test-results :
53
+ name : " Publish Tests Results"
54
+ needs : test
55
+ runs-on : ubuntu-latest
56
+ permissions :
57
+ checks : write
58
+ pull-requests : write
59
+ contents : read
60
+ issues : read
61
+ if : always()
62
+ steps :
63
+ - name : Download Artifacts
64
+ uses : actions/download-artifact@v4
65
+ with :
66
+ path : artifacts
67
+ - name : Publish Test Results
68
+ uses : EnricoMi/publish-unit-test-result-action@v2
69
+ with :
70
+ files : " artifacts/**/junit_report.xml"
48
71
slack :
49
72
needs : test
50
- runs-on : ubuntu-20 .04
73
+ runs-on : ubuntu-22 .04
51
74
if : always()
52
75
steps :
53
76
- name : Slack notification
65
88
66
89
finish :
67
90
needs : test
68
- runs-on : ubuntu-20 .04
91
+ runs-on : ubuntu-22 .04
69
92
if : always()
70
93
steps :
71
94
- name : Coveralls Finished
0 commit comments