File tree 8 files changed +125
-2
lines changed
8 files changed +125
-2
lines changed Original file line number Diff line number Diff line change
1
+ on : [push]
2
+ name : CI
3
+ jobs :
4
+ Cabal_build :
5
+ runs-on : ubuntu-latest
6
+ strategy :
7
+ fail-fast : false
8
+ matrix :
9
+ ghc :
10
+ - " 8.10.7"
11
+ - " 9.0.2"
12
+ - " 9.2.7"
13
+ - " 9.4.4"
14
+
15
+ name : Cabal GHC ${{ matrix.ghc }}
16
+ steps :
17
+ - uses : actions/checkout@v3
18
+ - name : Setup Haskell
19
+ uses : haskell/actions/setup@v2
20
+ with :
21
+ ghc-version : ${{ matrix.ghc }}
22
+ cabal-version : ' 3.8.1.0'
23
+ - run : cabal build all --enable-tests
24
+ - run : cabal test all
25
+
26
+ Stack_build :
27
+ name : Stack GHC ${{ matrix.ghc }}
28
+ runs-on : ubuntu-latest
29
+ strategy :
30
+ fail-fast : false
31
+ matrix :
32
+ ghc :
33
+ - " 8.10.7"
34
+ - " 9.0.2"
35
+ - " 9.2.7"
36
+ - " 9.4.4"
37
+ steps :
38
+ - uses : actions/checkout@v3
39
+
40
+ - uses : haskell/actions/setup@v2
41
+ name : Setup Haskell Stack
42
+ with :
43
+ ghc-version : ${{ matrix.ghc }}
44
+ enable-stack : true
45
+ stack-version : " latest"
46
+
47
+ - uses : actions/cache@v3
48
+ name : Cache ~/.stack
49
+ with :
50
+ path : ~/.stack
51
+ key : ${{ runner.os }}-${{ matrix.ghc }}-stack
52
+
53
+ - name : Build
54
+ run : stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
55
+
56
+ - name : Test
57
+ run : stack test --system-ghc
Original file line number Diff line number Diff line change 1
1
# Kubernetes Haskell Client
2
2
3
+ [ ![ Stack and Cabal] ( https://github.com/kubernetes-client/haskell/actions/workflows/ci.yml/badge.svg )] ( https://github.com/kubernetes-client/haskell/actions/workflows/ci.yml )
3
4
[ ![ Build Status] ( https://travis-ci.org/kubernetes-client/haskell.svg?branch=master )] ( https://travis-ci.org/kubernetes-client/haskell )
4
5
5
6
Haskell client for the [ kubernetes] ( http://kubernetes.io/ ) API.
Original file line number Diff line number Diff line change
1
+ packages :
2
+ kubernetes
3
+ kubernetes-client
4
+ examples
Original file line number Diff line number Diff line change 1
1
dist
2
2
dist-newstyle
3
- * .cabal
4
3
.stack-work
Original file line number Diff line number Diff line change
1
+ cabal-version : 1.12
2
+
3
+ -- This file has been generated from package.yaml by hpack version 0.34.4.
4
+ --
5
+ -- see: https://github.com/sol/hpack
6
+
7
+ name : kubernetes-examples
8
+ version : 0.1.0.1
9
+ synopsis : Kubernetes examples with Haskell
10
+ description : Examples to interact with Kubernetes using kubernetes-client and kubernetes-client-core
11
+ category : Examples, Kubernetes
12
+ maintainer : Shimin Guo <
[email protected] >,
13
+
14
+ license : Apache-2.0
15
+ license-file : LICENSE
16
+ build-type : Simple
17
+
18
+ executable in-cluster
19
+ main-is : Main.hs
20
+ other-modules :
21
+ Paths_kubernetes_examples
22
+ hs-source-dirs :
23
+ in-cluster
24
+ ghc-options : -Wall
25
+ build-depends :
26
+ base < 5
27
+ , containers
28
+ , http-client
29
+ , http-types
30
+ , kubernetes-client
31
+ , kubernetes-client-core
32
+ , safe-exceptions
33
+ , stm
34
+ , text
35
+ default-language : Haskell2010
36
+
37
+ executable simple
38
+ main-is : Main.hs
39
+ other-modules :
40
+ Paths_kubernetes_examples
41
+ hs-source-dirs :
42
+ simple
43
+ ghc-options : -Wall
44
+ build-depends :
45
+ base < 5
46
+ , containers
47
+ , http-client
48
+ , http-types
49
+ , kubernetes-client
50
+ , kubernetes-client-core
51
+ , safe-exceptions
52
+ , stm
53
+ , text
54
+ default-language : Haskell2010
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ executables:
22
22
ghc-options :
23
23
- -Wall
24
24
dependencies :
25
- - base
25
+ - base < 5
26
26
- containers
27
27
- http-client
28
28
- http-types
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ library
44
44
hs-source-dirs :
45
45
src
46
46
ghc-options : -Wall
47
+ build-tool-depends :
48
+ hspec-discover :hspec-discover
47
49
build-depends :
48
50
aeson >= 1.2 && < 3
49
51
, attoparsec >= 0.13
@@ -88,6 +90,8 @@ test-suite example
88
90
Paths_kubernetes_client
89
91
hs-source-dirs :
90
92
example
93
+ build-tool-depends :
94
+ hspec-discover :hspec-discover
91
95
build-depends :
92
96
aeson >= 1.2 && < 3
93
97
, attoparsec >= 0.13
@@ -138,6 +142,8 @@ test-suite spec
138
142
Paths_kubernetes_client
139
143
hs-source-dirs :
140
144
test
145
+ build-tool-depends :
146
+ hspec-discover :hspec-discover
141
147
build-depends :
142
148
aeson >= 1.2 && < 3
143
149
, attoparsec >= 0.13
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ library:
15
15
source-dirs : src
16
16
ghc-options :
17
17
- -Wall
18
+ build-tools :
19
+ - hspec-discover
18
20
tests :
19
21
spec :
20
22
main : Spec.hs
You can’t perform that action at this time.
0 commit comments