Skip to content

Commit f710960

Browse files
committed
[GH] update actions
1 parent 1d6d709 commit f710960

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

.github/workflows/hex.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
apk --no-cache upgrade
1818
apk --no-cache add gcc git libc-dev libc-utils libgcc linux-headers make bash \
1919
musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf wget zlib
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: work around for permission issue
2222
run: |
2323
git config --global --add safe.directory /__w/gtplib/gtplib

.github/workflows/main.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
apk --no-cache upgrade
2525
apk --no-cache add gcc git libc-dev libc-utils libgcc linux-headers make bash \
2626
musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf wget zlib
27-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v4
2828
- name: Build
2929
run: rebar3 compile
3030
- name: Run tests
@@ -36,15 +36,37 @@ jobs:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
COVERALLS_FLAG_NAME: ${{ matrix.otp }}
3838
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
3942
- name: Archive Test Output
4043
if: ${{ always() }}
41-
uses: actions/upload-artifact@v2
44+
uses: actions/upload-artifact@v4
4245
with:
4346
name: test-output-${{ matrix.otp }}
4447
path: |
45-
_build/test/logs/
46-
!_build/test/logs/last
48+
ct-logs-${{ matrix.otp }}.tar.zst
49+
_build/test/logs/*/junit_report.xml
4750
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"
4870
slack:
4971
needs: test
5072
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)