-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also moves CI from Azure to GitHub Actions and updates GHC versions.
- Loading branch information
Showing
19 changed files
with
195 additions
and
313 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,52 @@ | ||
name: Unit tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
# As of 6 August 2023, ubuntu-latest, windows-latest and macos-latest come | ||
# with Stack 2.11.1 and GHC 9.6.2. | ||
|
||
jobs: | ||
unit-tests: | ||
name: Unit tests | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
resolver: | ||
- stack-ghc-9.2.8.yaml | ||
- stack-ghc-9.4.5.yaml | ||
- stack-ghc-9.6.2.yaml | ||
include: | ||
- os: windows-latest | ||
resolver: stack-ghc-9.6.2.yaml | ||
- os: macos-latest | ||
resolver: stack-ghc-9.6.2.yaml | ||
steps: | ||
- name: Clone project | ||
uses: actions/checkout@v3 | ||
- name: Cache dependencies on Unix-like OS | ||
if: startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS') | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.stack | ||
key: ${{ runner.os }}-${{ matrix.resolver }} | ||
- name: Cache dependencies on Windows | ||
if: startsWith(runner.os, 'Windows') | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~\AppData\Roaming\stack | ||
~\AppData\Local\Programs\stack | ||
key: ${{ runner.os }}-${{ matrix.resolver }} | ||
- name: Run tests | ||
shell: bash | ||
run: | | ||
set -ex | ||
stack --resolver ${{ matrix.resolver }} test --bench --no-run-benchmarks --haddock --no-haddock-deps |
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,5 @@ | ||
/.stack-work/ | ||
http-download.cabal | ||
*.swp | ||
*~ | ||
|
||
# Haskell Tool Stack-related | ||
/.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
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,75 @@ | ||
cabal-version: 1.12 | ||
|
||
-- This file has been generated from package.yaml by hpack version 0.35.2. | ||
-- | ||
-- see: https://github.com/sol/hpack | ||
|
||
name: http-download | ||
version: 0.2.1.0 | ||
synopsis: Verified downloads with retries | ||
description: Higher level HTTP download APIs include verification of content and retries | ||
category: Development | ||
homepage: https://github.com/commercialhaskell/http-download#readme | ||
bug-reports: https://github.com/commercialhaskell/http-download/issues | ||
author: Michael Snoyman | ||
maintainer: [email protected] | ||
copyright: 2018-2023 FP Complete | ||
license: BSD3 | ||
license-file: LICENSE | ||
build-type: Simple | ||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/commercialhaskell/http-download | ||
|
||
library | ||
exposed-modules: | ||
Network.HTTP.Download | ||
Network.HTTP.Download.Verified | ||
other-modules: | ||
Paths_http_download | ||
hs-source-dirs: | ||
src/ | ||
build-depends: | ||
base >=4.10 && <5 | ||
, base64-bytestring | ||
, bytestring | ||
, conduit | ||
, conduit-extra | ||
, crypton | ||
, crypton-conduit | ||
, directory | ||
, exceptions | ||
, filepath | ||
, http-client | ||
, http-conduit | ||
, http-types | ||
, memory | ||
, path | ||
, path-io | ||
, retry | ||
, rio | ||
, rio-prettyprint | ||
default-language: Haskell2010 | ||
|
||
test-suite spec | ||
type: exitcode-stdio-1.0 | ||
main-is: Spec.hs | ||
other-modules: | ||
Network.HTTP.Download.VerifiedSpec | ||
Paths_http_download | ||
hs-source-dirs: | ||
test | ||
build-depends: | ||
base >=4.10 && <5 | ||
, crypton | ||
, hspec | ||
, hspec-discover | ||
, http-client | ||
, http-download | ||
, path | ||
, path-io | ||
, retry | ||
, rio | ||
, rio-prettyprint | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
name: http-download | ||
version: 0.2.0.0 | ||
version: 0.2.1.0 | ||
synopsis: Verified downloads with retries | ||
category: Development | ||
author: Michael Snoyman | ||
maintainer: [email protected] | ||
copyright: 2018-2019 FP Complete | ||
copyright: 2018-2023 FP Complete | ||
license: BSD3 | ||
github: commercialhaskell/http-download | ||
description: Higher level HTTP download APIs include verification of content and retries | ||
|
||
dependencies: | ||
- base >=4.10 && < 5 | ||
- cryptonite | ||
- crypton | ||
- http-client | ||
- path | ||
- path-io | ||
|
@@ -26,7 +26,7 @@ library: | |
- bytestring | ||
- conduit | ||
- conduit-extra | ||
- cryptonite-conduit | ||
- crypton-conduit | ||
- directory | ||
- exceptions | ||
- filepath | ||
|
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,17 @@ | ||
# Snapshot specification for GHC 9.2.8. | ||
resolver: lts-20.26 # GHC 9.2.8 | ||
|
||
packages: | ||
- crypton-0.33 | ||
- crypton-conduit-0.2.3 | ||
- crypton-connection-0.3.1 | ||
- crypton-x509-1.7.6 | ||
- crypton-x509-store-1.6.9 | ||
- crypton-x509-system-1.6.7 | ||
- crypton-x509-validation-1.6.12 | ||
- http-client-tls-0.3.6.2 | ||
- tls-1.7.1 | ||
|
||
flags: | ||
ansi-terminal: | ||
win32-2-13-1: false |
Oops, something went wrong.