Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GH] update actions #51

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/hex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
apk --no-cache upgrade
apk --no-cache add gcc git libc-dev libc-utils libgcc linux-headers make bash \
musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf wget zlib
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: work around for permission issue
run: |
git config --global --add safe.directory /__w/gtplib/gtplib
Expand Down
33 changes: 28 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ jobs:
apk update
apk --no-cache upgrade
apk --no-cache add gcc git libc-dev libc-utils libgcc linux-headers make bash \
musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf wget zlib
- uses: actions/checkout@v2
musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf \
wget zlib zstd
- uses: actions/checkout@v4
- name: Build
run: rebar3 compile
- name: Run tests
Expand All @@ -36,15 +37,37 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.otp }}
run: DEBUG=1 rebar3 as test coveralls send || /bin/true
- name: Tar Test Output
if: ${{ always() }}
run: tar -cf - _build/test/logs/ | zstd -15 -o ct-logs-${{ matrix.otp }}.tar.zst
- name: Archive Test Output
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: test-output-${{ matrix.otp }}
path: |
_build/test/logs/
!_build/test/logs/last
ct-logs-${{ matrix.otp }}.tar.zst
_build/test/logs/*/junit_report.xml

publish-test-results:
name: "Publish Tests Results"
needs: test
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
contents: read
issues: read
if: always()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: "artifacts/**/junit_report.xml"
slack:
needs: test
runs-on: ubuntu-22.04
Expand Down
3 changes: 2 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
[{deps,
[{proper, {git, "https://github.com/proper-testing/proper.git",
{branch, "master"}}}]},
{plugins, [{coveralls, {git, "https://github.com/RoadRunnr/coveralls-erl.git", {branch, "feature/git-info"}}}]}
{plugins, [{coveralls, {git, "https://github.com/RoadRunnr/coveralls-erl.git", {branch, "feature/git-info"}}}]},
{ct_opts, [{ct_hooks, [cth_surefire]}]}
]},
{pcap,
[{deps,
Expand Down