Update erlang.yml #4
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: | |
branches: | |
- nhse-develop-3.4 | |
pull_request: | |
branches: | |
- nhse-develop-3.4 | |
jobs: | |
build: | |
name: Test on ${{ matrix.os }} with OTP ${{ matrix.otp }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
otp: [24, 26] | |
os: [ubuntu-latest] | |
steps: | |
- uses: lukka/get-cmake@latest | |
- uses: actions/checkout@v4 | |
- name: Apt update | |
run: sudo apt-get update | |
- name: Pre-Compile | |
run: sudo apt-get install -y libpam0g-dev | |
- name: Install Erlang/OTP | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.otp }} | |
- name: Compile | |
run: ./rebar3 compile | |
- name: Run xref and dialyzer | |
run: ./rebar3 do xref, dialyzer | |
- name: Run eunit | |
run: ./rebar3 as gha do eunit |