Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
pull_request:
push:
branches:
- main
- master

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up GHC and Cabal
uses: haskell-actions/setup@v2
with:
ghc-version: '9.12.1'
cabal-version: '3.16'

- name: Cache Cabal artifacts
uses: actions/cache@v4
with:
path: |
~/.cabal/packages
~/.cabal/store
dist-newstyle
key: ${{ runner.os }}-ghc-9.12.1-cabal-${{ hashFiles('**/*.cabal', 'cabal.project', 'cabal.project.local') }}
restore-keys: |
${{ runner.os }}-ghc-9.12.1-cabal-

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pkg-config zlib1g-dev

- name: Run tests
run: |
cabal update
cabal test all --test-show-details=direct
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist-newstyle/
3 changes: 3 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packages: .

allow-newer: aeson-optics:*
7 changes: 5 additions & 2 deletions clickhouse-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ library
RecordWildCards

build-depends:
, base >=4.19 && <4.21
, base < 5.0
, bytestring
, containers
, contravariant
Expand Down Expand Up @@ -89,11 +89,14 @@ test-suite clickhouse-client-test
main-is: Main.hs

build-depends:
, base >=4.19 && <4.21
, base < 5.0
, bytestring
, clickhouse-client
, tasty
, tasty-hunit
, testcontainers
, text
, time
, unordered-containers
, uuid
, vector
Loading
Loading