-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from input-output-hk/KtorZ/fix-github-workflow
Fix github workflow: coverage and documentation export
- Loading branch information
Showing
5 changed files
with
147 additions
and
21 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
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,31 @@ | ||
name: Coding Standards | ||
|
||
on: | ||
pull_request: | ||
branches: [ "master" ] | ||
push: | ||
branches: [ "master" ] | ||
tags: [ "*.*.*" ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: 📥 Checkout repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: ✍ Check hlint and stylish | ||
run: | | ||
curl -sSL https://raw.github.com/ndmitchell/hlint/master/misc/run.sh | sh -s . | ||
curl -sSL https://raw.github.com/jaspervdj/stylish-haskell/master/scripts/latest.sh | sh -s $(find . -type f -name "*.hs" ! -path "*.stack-work*") -i | ||
if [ -z "$(git status --porcelain)" ]; then | ||
echo "No style errors detected." | ||
else | ||
echo "Style errors detected:" | ||
git diff | ||
exit 1 | ||
fi |
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 |
---|---|---|
|
@@ -25,7 +25,6 @@ cabal.project.local~ | |
.ghci | ||
*.tix | ||
stack.yaml.lock | ||
*.cabal | ||
|
||
### Nix ### | ||
result* | ||
|
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,103 @@ | ||
cabal-version: 1.12 | ||
|
||
-- This file has been generated from package.yaml by hpack version 0.31.2. | ||
-- | ||
-- see: https://github.com/sol/hpack | ||
-- | ||
-- hash: fa91aa04303b2016d424d05014b688d5845de29176adad56b44a698e849d080a | ||
|
||
name: cardano-coin-selection | ||
version: 1.0.0 | ||
synopsis: Algorithms for coin selection and fee balancing. | ||
description: Please see the README on GitHub at <https://github.com/input-output-hk/cardano-coin-selection> | ||
category: Cardano | ||
homepage: https://github.com/input-output-hk/cardano-coin-selection#readme | ||
bug-reports: https://github.com/input-output-hk/cardano-coin-selection/issues | ||
author: IOHK | ||
maintainer: operations@iohk.io | ||
copyright: 2020 IOHK | ||
license: Apache-2.0 | ||
license-file: LICENSE | ||
build-type: Simple | ||
extra-source-files: | ||
ChangeLog.md | ||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/input-output-hk/cardano-coin-selection | ||
|
||
flag release | ||
description: Compile executables for a release. | ||
manual: True | ||
default: False | ||
|
||
library | ||
exposed-modules: | ||
Cardano.CoinSelection | ||
Cardano.CoinSelection.Algorithm | ||
Cardano.CoinSelection.Algorithm.LargestFirst | ||
Cardano.CoinSelection.Algorithm.Migration | ||
Cardano.CoinSelection.Algorithm.RandomImprove | ||
Cardano.CoinSelection.Fee | ||
Internal | ||
Internal.Coin | ||
Internal.Invariant | ||
Internal.Rounding | ||
other-modules: | ||
Paths_cardano_coin_selection | ||
hs-source-dirs: | ||
src/library | ||
src/internal | ||
default-extensions: NoImplicitPrelude | ||
ghc-options: -Wall -Wcompat -fwarn-redundant-constraints | ||
build-depends: | ||
base >=4.7 && <5 | ||
, bytestring | ||
, containers | ||
, cryptonite | ||
, deepseq | ||
, quiet | ||
, text | ||
, transformers | ||
if flag(release) | ||
ghc-options: -Werror | ||
default-language: Haskell2010 | ||
|
||
test-suite unit | ||
type: exitcode-stdio-1.0 | ||
main-is: Spec.hs | ||
other-modules: | ||
Cardano.CoinSelection.Algorithm.LargestFirstSpec | ||
Cardano.CoinSelection.Algorithm.MigrationSpec | ||
Cardano.CoinSelection.Algorithm.RandomImproveSpec | ||
Cardano.CoinSelection.FeeSpec | ||
Cardano.CoinSelection.TypesSpec | ||
Cardano.CoinSelectionSpec | ||
Cardano.Test.Utilities | ||
Internal.CoinSpec | ||
Test.Vector.Shuffle | ||
Test.Vector.ShuffleSpec | ||
Paths_cardano_coin_selection | ||
hs-source-dirs: | ||
src/test | ||
default-extensions: NoImplicitPrelude | ||
ghc-options: -Wall -Wcompat -fwarn-redundant-constraints -threaded -rtsopts -with-rtsopts=-N | ||
build-depends: | ||
QuickCheck | ||
, base >=4.7 && <5 | ||
, bytestring | ||
, cardano-coin-selection | ||
, containers | ||
, cryptonite | ||
, deepseq | ||
, fmt | ||
, hspec | ||
, memory | ||
, quiet | ||
, random | ||
, text | ||
, transformers | ||
, vector | ||
if flag(release) | ||
ghc-options: -Werror | ||
default-language: Haskell2010 |