Skip to content

Bump resolvers for CI #198

Bump resolvers for CI

Bump resolvers for CI #198

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
# As of 27 September 2023, ubuntu-latest and windows-latest come with
# Stack 2.11.1 and macos-latest comes with Stack 2.9.3.
jobs:
build:
name: CI
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
resolver:
- stack-ghc-9.2.8.yaml
- stack-ghc-9.4.7.yaml
- stack-ghc-9.6.3.yaml
include:
- os: macos-latest
resolver: stack-ghc-9.6.3.yaml
- os: windows-latest
resolver: stack-ghc-9.6.3.yaml
steps:
- name: Clone project
uses: actions/checkout@v4
- name: Cache dependencies on Unix-like OS
if: startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS')
uses: actions/cache@v3
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.resolver }}
- name: Cache dependencies on Windows
if: startsWith(runner.os, 'Windows')
uses: actions/cache@v3
with:
path: |
~\AppData\Roaming\stack
~\AppData\Local\Programs\stack
key: ${{ runner.os }}-${{ matrix.resolver }}
- name: Build and run tests
shell: bash
run: |
set -ex
stack --resolver ${{ matrix.resolver }} test --bench --no-run-benchmarks --haddock --no-haddock-deps
test-pretty-exceptions:
name: Test build of test-pretty-exceptions
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
resolver:
- stack-ghc-9.4.7.yaml
steps:
- name: Clone project
uses: actions/checkout@v4
- name: Cache dependencies on Unix-like OS
if: startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS')
uses: actions/cache@v3
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.resolver }}-pretty
- name: Cache dependencies on Windows
if: startsWith(runner.os, 'Windows')
uses: actions/cache@v3
with:
path: |
~\AppData\Roaming\stack
~\AppData\Local\Programs\stack
key: ${{ runner.os }}-${{ matrix.resolver }}-pretty
- name: Build test-pretty-exceptions
shell: bash
run: |
set -ex
stack --resolver ${{ matrix.resolver }} build --flag pantry:test-pretty-exceptions