Fix error when maybe_expr enabled
#184
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| linux: | |
| name: OTP ${{ matrix.otp_version }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| otp_version: [24, 25, 26, 27] | |
| os: [ubuntu-latest] | |
| container: | |
| image: erlang:${{ matrix.otp_version }} | |
| env: | |
| ERL_FLAGS: ${{ matrix.otp_version >= 25 && '-enable-feature maybe_expr' || '' }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Compile | |
| run: rebar3 compile | |
| - name: Run CT tests | |
| run: rebar3 ct | |
| - name: Run EUnit tests | |
| run: rebar3 eunit | |
| - name: Run dialyzer | |
| run: rebar3 dialyzer |