Add example on how to build Yaml Value in loadYamlSettings #66
Workflow file for this run
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
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] | |
resolver: [nightly, lts-22, lts-20, lts-17] | |
exclude: | |
- os: windows-latest | |
resolver: lts-15 | |
- os: windows-latest | |
resolver: nightly | |
steps: | |
- name: Clone project | |
uses: actions/checkout@v3 | |
- name: Cache dependencies | |
if: ${{ runner.os != 'Windows' }} | |
# Andreas Abel, 2023-06-10, switching off caching on Windows since ~/.stack is not the correct path here. | |
uses: actions/cache@v3 | |
with: | |
path: ~/.stack | |
#NB: This path is not valid on Windows | |
key: ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.resolver }}- | |
- name: Build and run tests | |
shell: bash | |
run: | | |
set -ex | |
stack upgrade || curl -sSL https://get.haskellstack.org/ | sh -s - -f | |
stack test --bench --no-run-benchmarks --haddock --no-haddock-deps --no-terminal --resolver=${{ matrix.resolver }} |