Add RowBinary integer property tests (#346) #190
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: | |
| pull_request: | |
| workflow_dispatch: | |
| push: | |
| branches: [master] | |
| schedule: | |
| - cron: "42 9 * * *" | |
| jobs: | |
| test: | |
| name: "test @ elixir:${{ matrix.elixir }} otp:${{ matrix.otp }} clickhouse:${{ matrix.clickhouse }} ${{ matrix.dialyzer && ' +dialyzer' || '' }}${{ matrix.lint && ' +lint' || '' }}" | |
| runs-on: ubuntu-latest | |
| env: | |
| MIX_ENV: test | |
| strategy: | |
| matrix: | |
| include: | |
| # some old elixir/clickhouse version with the minimum supported OTP | |
| # see https://hexdocs.pm/elixir/compatibility-and-deprecations.html#between-elixir-and-erlang-otp | |
| - elixir: "1.18" | |
| otp: "28" | |
| clickhouse: "24.5.4.49" | |
| # the latest versions with all static checks | |
| - elixir: ">0" | |
| otp: ">0" | |
| clickhouse: "latest" | |
| dialyzer: true | |
| lint: true | |
| coverage: true | |
| services: | |
| clickhouse: | |
| image: clickhouse/clickhouse-server:${{ matrix.clickhouse }} | |
| ports: | |
| - 8123:8123 | |
| env: | |
| # https://github.com/ClickHouse/ClickHouse/issues/75494 | |
| CLICKHOUSE_SKIP_USER_SETUP: 1 | |
| options: >- | |
| --health-cmd nc -zw3 localhost 8124 | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - id: beam | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| elixir-version: ${{ matrix.elixir }} | |
| otp-version: ${{ matrix.otp }} | |
| - name: Restore deps cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| deps | |
| _build | |
| key: test-${{ steps.beam.outputs.elixir-version }}-${{ github.head_ref || github.ref }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| test-${{ steps.beam.outputs.elixir-version }}-${{ github.head_ref || github.ref }}- | |
| test-${{ steps.beam.outputs.elixir-version }}-refs/heads/master- | |
| - run: mix deps.get --only $MIX_ENV | |
| if: ${{ !matrix.lint }} | |
| - run: mix deps.get --check-locked | |
| if: ${{ matrix.lint }} | |
| - run: mix deps.unlock --check-unused | |
| if: ${{ matrix.lint }} | |
| - run: mix compile --warnings-as-errors | |
| - run: mix format --check-formatted | |
| if: ${{ matrix.lint }} | |
| - run: mix test --include slow | |
| if: ${{ !matrix.coverage || github.event_name == 'schedule' }} | |
| - run: mix coveralls.github --include slow | |
| if: ${{ matrix.coverage && github.event_name != 'schedule' }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Restore PLTs cache | |
| if: ${{ matrix.dialyzer }} | |
| uses: actions/cache@v5 | |
| with: | |
| path: plts | |
| key: plts-${{ steps.beam.outputs.elixir-version }}-${{ github.head_ref || github.ref }} | |
| restore-keys: | | |
| plts-${{ steps.beam.outputs.elixir-version }}-refs/heads/master | |
| - run: mix dialyzer --format github | |
| if: ${{ matrix.dialyzer }} | |
| - uses: crate-ci/typos@master | |
| if: ${{ matrix.lint }} |