Code generation and delegation to nested routes #488
This file contains hidden or 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
| name: Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| name: CI | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| args: | |
| - "--resolver lts-23" | |
| - "--resolver lts-22 --stack-yaml stack-lts-22.yaml" | |
| - "--resolver lts-20 --stack-yaml stack-lts-22.yaml" | |
| - "--resolver lts-18 --stack-yaml stack-lts-22.yaml" | |
| - "--resolver lts-16 --stack-yaml stack-lts-22.yaml" | |
| exclude: | |
| # llvm too new on macos-latest for ghc 8 | |
| - os: macos-latest | |
| args: "--resolver lts-18 --stack-yaml stack-lts-22.yaml" | |
| - os: macos-latest | |
| args: "--resolver lts-16 --stack-yaml stack-lts-22.yaml" | |
| steps: | |
| - name: Clone project | |
| uses: actions/checkout@v4 | |
| # Getting weird OS X errors... | |
| # - name: Cache dependencies | |
| # uses: actions/cache@v1 | |
| # with: | |
| # path: ~/.stack | |
| # key: ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }} | |
| # restore-keys: | | |
| # ${{ runner.os }}-${{ matrix.resolver }}- | |
| - name: Install stack if needed | |
| shell: bash | |
| run: | | |
| set -ex | |
| if [[ "${{ matrix.os }}" == "macos-latest" ]] | |
| then | |
| # macos-latest does not include Haskell tools as of 2024-05-06. | |
| curl -sSL https://get.haskellstack.org/ | sh | |
| fi | |
| - name: Build and run tests | |
| shell: bash | |
| run: | | |
| set -ex | |
| stack --version | |
| stack test --fast --no-terminal ${{ matrix.args }} |