diff --git a/.github/workflows/hex.yaml b/.github/workflows/hex.yaml index 2f4a511..f728b7d 100644 --- a/.github/workflows/hex.yaml +++ b/.github/workflows/hex.yaml @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 496e597..cde5be0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - 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] + otp: [22.2.8, 22.3.4.14, 23.0.4, 23.1.5.0, 23.2.1.0, 24.0.2] container: image: erlang:${{ matrix.otp }}-alpine steps: @@ -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 @@ -36,18 +37,40 @@ 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-20.04 + runs-on: ubuntu-22.04 if: always() steps: - name: Slack notification @@ -65,7 +88,7 @@ jobs: finish: needs: test - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: always() steps: - name: Coveralls Finished diff --git a/rebar.config b/rebar.config index 43d7784..cfb8409 100644 --- a/rebar.config +++ b/rebar.config @@ -16,7 +16,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,