-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub Actions work from peterbecich
- Loading branch information
1 parent
116f01d
commit f570828
Showing
8 changed files
with
125 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
on: [push] | ||
name: CI | ||
jobs: | ||
Cabal_build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ghc: | ||
- "8.10.7" | ||
- "9.0.2" | ||
- "9.2.7" | ||
- "9.4.4" | ||
|
||
name: Cabal GHC ${{ matrix.ghc }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Haskell | ||
uses: haskell/actions/setup@v2 | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
cabal-version: '3.8.1.0' | ||
- run: cabal build all --enable-tests | ||
- run: cabal test all | ||
|
||
Stack_build: | ||
name: Stack GHC ${{ matrix.ghc }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ghc: | ||
- "8.10.7" | ||
- "9.0.2" | ||
- "9.2.7" | ||
- "9.4.4" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: haskell/actions/setup@v2 | ||
name: Setup Haskell Stack | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
enable-stack: true | ||
stack-version: "latest" | ||
|
||
- uses: actions/cache@v3 | ||
name: Cache ~/.stack | ||
with: | ||
path: ~/.stack | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-stack | ||
|
||
- name: Build | ||
run: stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks | ||
|
||
- name: Test | ||
run: stack test --system-ghc |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
packages: | ||
kubernetes | ||
kubernetes-client | ||
examples |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
dist | ||
dist-newstyle | ||
*.cabal | ||
.stack-work |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
cabal-version: 1.12 | ||
|
||
-- This file has been generated from package.yaml by hpack version 0.34.4. | ||
-- | ||
-- see: https://github.com/sol/hpack | ||
|
||
name: kubernetes-examples | ||
version: 0.1.0.1 | ||
synopsis: Kubernetes examples with Haskell | ||
description: Examples to interact with Kubernetes using kubernetes-client and kubernetes-client-core | ||
category: Examples, Kubernetes | ||
maintainer: Shimin Guo <[email protected]>, | ||
Akshay Mankar <[email protected]> | ||
license: Apache-2.0 | ||
license-file: LICENSE | ||
build-type: Simple | ||
|
||
executable in-cluster | ||
main-is: Main.hs | ||
other-modules: | ||
Paths_kubernetes_examples | ||
hs-source-dirs: | ||
in-cluster | ||
ghc-options: -Wall | ||
build-depends: | ||
base <5 | ||
, containers | ||
, http-client | ||
, http-types | ||
, kubernetes-client | ||
, kubernetes-client-core | ||
, safe-exceptions | ||
, stm | ||
, text | ||
default-language: Haskell2010 | ||
|
||
executable simple | ||
main-is: Main.hs | ||
other-modules: | ||
Paths_kubernetes_examples | ||
hs-source-dirs: | ||
simple | ||
ghc-options: -Wall | ||
build-depends: | ||
base <5 | ||
, containers | ||
, http-client | ||
, http-types | ||
, kubernetes-client | ||
, kubernetes-client-core | ||
, safe-exceptions | ||
, stm | ||
, text | ||
default-language: Haskell2010 |
This file contains 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
This file contains 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
This file contains 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