Skip to content
Merged
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
77 changes: 39 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,47 +15,48 @@ jobs:
otp: ["27", "28"]
fail-fast: false
steps:
- uses: actions/checkout@v5
- uses: erlef/setup-beam@v1
id: setup-beam
with:
otp-version: ${{matrix.otp}}
rebar3-version: "3"
- name: Compile
run: make compile
- name: Check format
run: make check-format
- name: Run xref
run: make xref
- name: Fetch PLT
uses: actions/cache@v4
id: cache-plt
with:
path: |
_build/default/*_plt
key: dialyzer-${{ github.ref_name }}-${{ matrix.otp }}
restore-keys: |
dialyzer-${{ github.event.repository.default_branch || 'master' }}-${{ matrix.otp }}
dialyzer-${{ github.event.repository.default_branch || 'master' }}-
- name: Run dialyzer
run: make dialyze
- name: Run eunit tests
run: make eunit
- name: Run ct tests
run: make ct
- uses: actions/checkout@v5
- uses: erlef/setup-beam@v1
id: setup-beam
with:
otp-version: ${{matrix.otp}}
rebar3-version: "3"
- name: Compile
run: make compile
- name: Check format
run: make check-format
- name: Run xref
run: make xref
- name: Fetch PLT
uses: actions/cache@v4
id: cache-plt
with:
path: |
_build/default/*_plt
key: dialyzer-${{ github.ref_name }}-${{ matrix.otp }}
restore-keys: |
dialyzer-${{ github.event.repository.default_branch || 'master' }}-${{ matrix.otp }}
dialyzer-${{ github.event.repository.default_branch || 'master' }}-
- name: Run dialyzer
run: make dialyze
- name: Run eunit tests
run: make eunit
- name: Run ct tests
run: make ct

release:
if: github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'no-release:') == false
needs: build_and_test
runs-on: ubuntu-latest
steps:
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub Release
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create "${{ steps.tag_version.outputs.new_tag }}" --generate-notes
- uses: actions/checkout@v5
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub Release
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create "${{ steps.tag_version.outputs.new_tag }}" --generate-notes