-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tests, workflow for haskell samples (#16290)
- Loading branch information
Showing
7 changed files
with
864 additions
and
20 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,36 @@ | ||
name: Samples Haskell | ||
|
||
on: | ||
push: | ||
paths: | ||
- samples/server/petstore/haskell-yesod/** | ||
- samples/server/petstore/haskell-servant/** | ||
- samples/client/petstore/haskell-http-client/** | ||
pull_request: | ||
paths: | ||
- samples/server/petstore/haskell-yesod/** | ||
- samples/server/petstore/haskell-servant/** | ||
- samples/client/petstore/haskell-http-client/** | ||
jobs: | ||
build: | ||
name: Build stack projects | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sample: | ||
# servers | ||
- samples/server/petstore/haskell-yesod/ | ||
- samples/server/petstore/haskell-servant/ | ||
- samples/client/petstore/haskell-http-client/ | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: haskell/actions/setup@v2 | ||
with: | ||
# ghc-version: '8.8.4' # Exact version of ghc to use | ||
# cabal-version: 'latest'. Omitted, but defaults to 'latest' | ||
enable-stack: true | ||
stack-version: 'latest' | ||
- name: stack test | ||
working-directory: ${{ matrix.sample }} | ||
run: stack test |
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,4 @@ | ||
generatorName: haskell | ||
outputDir: samples/server/petstore/haskell-servant | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/haskell/petstore.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/haskell-servant |
2 changes: 1 addition & 1 deletion
2
bin/configs/haskell-yesod-petstore-new.yaml → bin/configs/haskell-yesod.yaml
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,6 +1,6 @@ | ||
generatorName: haskell-yesod | ||
outputDir: samples/server/petstore/haskell-yesod | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/haskell/petstore.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/haskell-yesod | ||
additionalProperties: | ||
hideGenerationTimestamp: "true" |
Oops, something went wrong.