Skip to content

Commit

Permalink
[#57]: Upload artifacts after a CI run (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvanbere authored Jan 22, 2022
1 parent 7181552 commit d59e342
Show file tree
Hide file tree
Showing 12 changed files with 105 additions and 12 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/test-macos-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,11 @@ jobs:

- env:
STACK_YAML: ${{matrix.stack-yaml }}
run: stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps
run: |
stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps
stack sdist
- uses: actions/upload-artifact@v2
with:
name: github-webhooks-macos-${{ matrix.stack-yaml }}-${{ github.sha }}
path: .stack-work/dist/
9 changes: 8 additions & 1 deletion .github/workflows/test-ubuntu-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,11 @@ jobs:

- env:
STACK_YAML: ${{matrix.stack-yaml }}
run: stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps
run: |
stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps
stack sdist
- uses: actions/upload-artifact@v2
with:
name: github-webhooks-ubuntu-${{ matrix.stack-yaml }}-${{ github.sha }}
path: .stack-work/dist/
11 changes: 9 additions & 2 deletions .github/workflows/test-windows-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,12 @@ jobs:
stack-version: ${{ matrix.stack-version }}

- env:
STACK_YAML: ${{matrix.stack-yaml }}
run: stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps
STACK_YAML: ${{ matrix.stack-yaml }}
run: |
stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps
stack sdist
- uses: actions/upload-artifact@v2
with:
name: github-webhooks-windows-${{ matrix.stack-yaml }}-${{ github.sha }}
path: .stack-work/dist/
21 changes: 21 additions & 0 deletions examples/scotty/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017-2022 Cuedo Control Engineering (https://cuedo.com.au)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
5 changes: 3 additions & 2 deletions examples/scotty/github-webhooks-scotty-example.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack
--
-- hash: d8428034201293b018c5837284fb6fada822e5cc703563bad60b8d17ba0a5ef9

name: github-webhooks-scotty-example
version: 0.0.0
synopsis: Sample program using scotty and github-webhooks together.
description: Sample program using @scotty@ and @github-webhooks@ together.
author: Kyle Van Berendonck <[email protected]>
maintainer: Kyle Van Berendonck <[email protected]>
copyright: (c) 2017-2022 Cuedo Control Engineering
license: MIT
license-file: LICENSE
build-type: Simple

executable github-webhooks-scotty-example
Expand Down
2 changes: 2 additions & 0 deletions examples/scotty/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ license: MIT
copyright: (c) 2017-2022 Cuedo Control Engineering
author: Kyle Van Berendonck <[email protected]>
maintainer: Kyle Van Berendonck <[email protected]>
synopsis: Sample program using scotty and github-webhooks together.
description: Sample program using @scotty@ and @github-webhooks@ together.

ghc-options:
- -Wall
Expand Down
21 changes: 21 additions & 0 deletions examples/servant-simple/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017-2022 Cuedo Control Engineering (https://cuedo.com.au)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack
--
-- hash: adf0ce828a20e78e793bb6ca83763a25d3e00c778e5eaf1d6dfc1e722bb699a9

name: github-webhooks-servant-simple-example
version: 0.0.0
synopsis: Simplified sample program using servant and github-webhooks together.
description: Simplified sample program using @servant@ and @github-webhooks@ together.
author: Kyle Van Berendonck <[email protected]>
maintainer: Kyle Van Berendonck <[email protected]>
copyright: (c) 2017-2022 Cuedo Control Engineering
license: MIT
license-file: LICENSE
build-type: Simple

executable github-webhooks-servant-example
Expand Down
2 changes: 2 additions & 0 deletions examples/servant-simple/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ license: MIT
copyright: (c) 2017-2022 Cuedo Control Engineering
author: Kyle Van Berendonck <[email protected]>
maintainer: Kyle Van Berendonck <[email protected]>
synopsis: Simplified sample program using servant and github-webhooks together.
description: Simplified sample program using @servant@ and @github-webhooks@ together.

ghc-options:
- -Wall
Expand Down
21 changes: 21 additions & 0 deletions examples/servant/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017-2022 Cuedo Control Engineering (https://cuedo.com.au)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
9 changes: 5 additions & 4 deletions examples/servant/github-webhooks-servant-example.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@ cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack
--
-- hash: 0f8ba64f2981c4f188157ff6f1d932983a6f9702a1d20beb163c0a1780fc6eed

name: github-webhooks-servant-example
version: 0.0.0
synopsis: Sample program using servant and github-webhooks together.
description: Sample program using @servant@ and @github-webhooks@ together.
author: Kyle Van Berendonck <[email protected]>
maintainer: Kyle Van Berendonck <[email protected]>
copyright: (c) 2017-2022 Cuedo Control Engineering
license: MIT
license-file: LICENSE
build-type: Simple

executable github-webhooks-servant-example
main-is: Main.hs
other-modules:
Paths_github_webhooks_servant_example
hs-source-dirs:
src
default-extensions:
Expand All @@ -36,6 +39,4 @@ executable github-webhooks-servant-example
, servant-server
, wai
, warp
other-modules:
Paths_github_webhooks_servant_example
default-language: Haskell2010
2 changes: 2 additions & 0 deletions examples/servant/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ license: MIT
copyright: (c) 2017-2022 Cuedo Control Engineering
author: Kyle Van Berendonck <[email protected]>
maintainer: Kyle Van Berendonck <[email protected]>
synopsis: Sample program using servant and github-webhooks together.
description: Sample program using @servant@ and @github-webhooks@ together.

ghc-options:
- -Wall
Expand Down

0 comments on commit d59e342

Please sign in to comment.