fix: test run on otp 26 and 27 too #94
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: Erlang CI | |
on: [push] | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
name: OTP ${{matrix.otp}} | |
strategy: | |
fail-fast: false | |
matrix: | |
otp: ["24", "25", "26", "27"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: erlef/[email protected] | |
with: | |
otp-version: ${{matrix.otp}} | |
rebar3-version: "3.20.0" | |
- name: Compile | |
run: make | |
- name: Run elvis | |
run: make elvis_rock | |
- name: Run xref | |
run: make xref | |
- name: Run dialyzer | |
run: make dialyze | |
- name: Run common 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/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create a GitHub release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.tag_version.outputs.new_tag }} | |
release_name: Release ${{ steps.tag_version.outputs.new_tag }} | |
body: ${{ steps.tag_version.outputs.changelog }} |