Skip to content

fix: avoid crash up in kivra_core (#21) #35

fix: avoid crash up in kivra_core (#21)

fix: avoid crash up in kivra_core (#21) #35

name: Erlang CI
on: [push]
jobs:
build_and_test:
runs-on: ubuntu-22.04
name: OTP ${{matrix.otp}}
strategy:
matrix:
otp: ["25", "26", "27"]
rebar3: ["3.23.0"]
steps:
- uses: actions/checkout@v2.0.0
- uses: erlef/setup-beam@v1.16.0
with:
otp-version: ${{matrix.otp}}
rebar3-version: ${{matrix.rebar3}}
- name: Compile
run: make compile
- name: Run dialyzer
run: make dialyze
- name: Run eunit tests
run: make eunit
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@v5.3
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 }}