diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1916e84..8b92125 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,20 +20,20 @@ jobs: with: otp-version: ${{matrix.otp}} rebar3-version: ${{matrix.rebar}} - #- name: Restore _build - # uses: actions/cache@v3 - # with: - # path: _build - # key: _build-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}} - #- name: Restore rebar3's cache - # uses: actions/cache@v3 - # with: - # path: ~/.cache/rebar3 - # key: rebar3-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}} + - name: Restore _build + uses: actions/cache@v3 + with: + path: _build + key: _build-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}} + - name: Restore rebar3's cache + uses: actions/cache@v3 + with: + path: ~/.cache/rebar3 + key: rebar3-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}} - name: Compile run: ERL_FLAGS="-enable-feature all" rebar3 compile - - name: Format check - run: ERL_FLAGS="-enable-feature all" rebar3 format --verify + #- name: Format check + # run: ERL_FLAGS="-enable-feature all" rebar3 format --verify - name: Run tests and verifications (features not enabled) run: rebar3 test - name: Run tests and verifications (features enabled) diff --git a/test/files/otp27.erl b/test/files/otp27.erl index 5ebd827..2e09d09 100644 --- a/test/files/otp27.erl +++ b/test/files/otp27.erl @@ -1,4 +1,3 @@ --format ignore. -module(otp27). -if(?OTP_RELEASE >= 27).