rewrite eradius #171
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
otp: [25.3, 26.0, 26.1, 26.2, 27.0-rc3] | |
container: | |
image: erlang:${{ matrix.otp }}-alpine | |
steps: | |
- name: Prepare | |
run: | | |
apk update | |
apk --no-cache upgrade | |
apk --no-cache add zstd | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: rebar3 compile | |
- name: Run tests | |
run: | | |
export ERL_AFLAGS="+pc unicode -enable-feature all" | |
rebar3 do xref, ct | |
rebar3 as dialyzer do dialyzer | |
- 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@v4 | |
with: | |
name: test-output-${{ matrix.otp }} | |
path: ct-logs-${{ matrix.otp }}.tar.xz | |
slack: | |
needs: test | |
runs-on: ubuntu-22.04 | |
if: always() | |
steps: | |
- name: Slack notification | |
uses: 8398a7/action-slack@v3 | |
with: | |
author_name: "GitHub Actions" | |
username: ${{ github.event.repository.name }} | |
icon_emoji: ':octocat:' | |
fields: repo, message, ref, commit, author, action, eventName, workflow, job, took | |
status: ${{ needs.test.result }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} | |
MATRIX_CONTEXT: ${{ toJson(matrix) }} |