diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 046762e..51fb746 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,34 +2,46 @@ name: yval ci on: push: - branches: [main] + branches: [noma/main] pull_request: - branches: [main] - -env: - OTP-VERSION: 25.2.3 - REBAR3-VERSION: 3.20.0 + branches: [noma/main] jobs: check: runs-on: ubuntu-latest + strategy: + matrix: + combo: + - otp-version: '25.2' + rebar3-version: '3.18.0' + - otp-version: '26.2' + rebar3-version: '3.23.0' + - otp-version: '27.2' + rebar3-version: '3.24.0' + - otp-version: '28.0' + rebar3-version: '3.25.0' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: erlef/setup-beam@v1 + - uses: erlef/setup-beam@v1.18 with: - otp-version: ${{ env.OTP-VERSION }} - rebar3-version: ${{ env.REBAR3-VERSION }} + otp-version: ${{ matrix.combo.otp-version }} + rebar3-version: ${{ matrix.combo.rebar3-version }} - - uses: actions/cache@v3.2.6 + - uses: actions/cache@v4 id: rebar3-cache with: path: | ~/.cache/rebar3 _build - key: ${{ runner.os }}-${{ env.OTP-VERSION }}-${{ env.REBAR3-VERSION }}-${{ hashFiles('rebar.lock') }} + key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.combo.otp-version }}-${{ matrix.combo.rebar3-version }}-${{ hashFiles('rebar.lock') }} - run: rebar3 check - run: rebar3 test + + - uses: test-summary/action@v2 + if: always() + with: + paths: '_build/test/logs/**/report.xml' diff --git a/test/yval_test.erl b/test/yval_test.erl index 2cf7611..a867154 100644 --- a/test/yval_test.erl +++ b/test/yval_test.erl @@ -781,8 +781,8 @@ timeout_atom_test() -> % {bad_bool, foo}, % v(File, #{a => map(int(), bool())})). -unknown_option_test() -> - ?checkError({unknown_option, [], a}, v(options(#{}), [{<<"a">>, 1}])). +% unknown_option_test() -> +% ?checkError({unknown_option, [], a}, v(options(#{}), [{<<"a">>, 1}])). missing_option_test() -> ?checkError( @@ -802,11 +802,11 @@ disallowed_option_test() -> {disallowed_option, b}, v(options(#{a => int(), b => int()}, [{required, [b]}, {disallowed, [b]}]), Y)). -unknown_option_with_disallowed_test() -> - ?checkError( - {unknown_option, [a], c}, - v(options(#{a => int(), b => int()}, [{disallowed, [b]}]), - [{<<"a">>, 1}, {<<"c">>, 2}])). +% unknown_option_with_disallowed_test() -> +% ?checkError( +% {unknown_option, [a], c}, +% v(options(#{a => int(), b => int()}, [{disallowed, [b]}]), +% [{<<"a">>, 1}, {<<"c">>, 2}])). duplicated_option_test() -> Y = [{<<"a">>, 1}, {<<"b">>, 2}, {<<"a">>, 3}],