forked from loafle/openapi-generator-original
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
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@v4
|
|
- 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
|