diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml new file mode 100644 index 0000000..17991f9 --- /dev/null +++ b/.github/workflows/erlang.yml @@ -0,0 +1,40 @@ +name: Erlang CI + +on: + push: + branches: + - nhse-develop + - nhse-develop-3.2 + - nhse-develop-3.4 + pull_request: + branches: + - nhse-develop + - nhse-develop-3.2 + - 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: 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 diff --git a/.gitignore b/.gitignore index 69fa449..172c657 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ _build/ +rebar.lock diff --git a/rebar.lock b/rebar.lock deleted file mode 100644 index 57afcca..0000000 --- a/rebar.lock +++ /dev/null @@ -1 +0,0 @@ -[]. diff --git a/rebar3 b/rebar3 new file mode 100755 index 0000000..0cccbb6 Binary files /dev/null and b/rebar3 differ