diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81739cf..6e22f9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,13 +13,19 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - otp: [25.2, 21.3.8.21] + otp: [27, 21] container: image: erlang:${{ matrix.otp }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + - name: Fix repository ownership + run: git config --global --add safe.directory /__w/snabbkaffe/snabbkaffe - name: Compile and run tests - run: make + run: | + apt-get update + apt-get upgrade + DEBIAN_FRONTEND=noninteractive apt-get install -y gawk + make - name: Test with concuerror run: make concuerror_test diff --git a/CHANGELOG.md b/CHANGELOG.md index d85c18f..644e6f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ - Added new module `snabbkaffe_diff` that helps to compare large lists - Added a new macro `?defer_assert(...)` that allows the run stage to continue after encountering a failure, and fails the testcase in the check stage instead. +### Fixes +- Quote a new reserved word (`maybe`) for compatibility with OTP27 + ## 1.0.9 ### Features - Now it is possible to redefine what `?snk_kind` macro translates to in prod mode by defining `SNK_PROD_KIND` macro. diff --git a/src/snabbkaffe.erl b/src/snabbkaffe.erl index 2649be2..508459d 100644 --- a/src/snabbkaffe.erl +++ b/src/snabbkaffe.erl @@ -101,7 +101,7 @@ -type maybe_pair() :: {pair, timed_event(), timed_event()} | {unmatched_cause | unmatched_effect, timed_event()}. --type maybe(A) :: {just, A} | nothing. +-type 'maybe'(A) :: {just, A} | nothing. -type run_config() :: #{ bucket => integer() @@ -123,7 +123,7 @@ | [trace_spec(Result) | {string(), trace_spec(Result)}]. -export_type([ kind/0, timestamp/0, event/0, timed_event/0, trace/0 - , maybe_pair/0, maybe/1, metric/0, run_config/0, predicate/0 + , maybe_pair/0, 'maybe'/1, metric/0, run_config/0, predicate/0 , predicate2/0, trace_spec/1, trace_specs/1, filter/0 ]).