Skip to content

Commit fed68ce

Browse files
authored
Merge pull request #51 from travelping/update/ci-actions
[GH] update actions
2 parents 1d6d709 + b063aeb commit fed68ce

File tree

3 files changed

+31
-7
lines changed

3 files changed

+31
-7
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: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ jobs:
2323
apk update
2424
apk --no-cache upgrade
2525
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
2829
- name: Build
2930
run: rebar3 compile
3031
- name: Run tests
@@ -36,15 +37,37 @@ jobs:
3637
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3738
COVERALLS_FLAG_NAME: ${{ matrix.otp }}
3839
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
3943
- name: Archive Test Output
4044
if: ${{ always() }}
41-
uses: actions/upload-artifact@v2
45+
uses: actions/upload-artifact@v4
4246
with:
4347
name: test-output-${{ matrix.otp }}
4448
path: |
45-
_build/test/logs/
46-
!_build/test/logs/last
49+
ct-logs-${{ matrix.otp }}.tar.zst
50+
_build/test/logs/*/junit_report.xml
4751
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"
4871
slack:
4972
needs: test
5073
runs-on: ubuntu-22.04

rebar.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
[{deps,
1818
[{proper, {git, "https://github.com/proper-testing/proper.git",
1919
{branch, "master"}}}]},
20-
{plugins, [{coveralls, {git, "https://github.com/RoadRunnr/coveralls-erl.git", {branch, "feature/git-info"}}}]}
20+
{plugins, [{coveralls, {git, "https://github.com/RoadRunnr/coveralls-erl.git", {branch, "feature/git-info"}}}]},
21+
{ct_opts, [{ct_hooks, [cth_surefire]}]}
2122
]},
2223
{pcap,
2324
[{deps,

0 commit comments

Comments
 (0)