Update CI (#166)

This commit is contained in:
Aditya Manthramurthy 2022-02-10 10:43:43 -08:00 committed by GitHub
parent c52f2811fe
commit 193be59432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 18 deletions

View File

@ -3,9 +3,16 @@ name: CI
# Trigger the workflow on push or pull request, but only for the main branch # Trigger the workflow on push or pull request, but only for the main branch
on: on:
pull_request: pull_request:
branches: [master]
push: push:
branches: [master] branches: [master]
# This ensures that previous jobs for the PR are canceled when the PR is
# updated.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
# Env vars for tests # Env vars for tests
env: env:
MINIO_ACCESS_KEY: minio MINIO_ACCESS_KEY: minio
@ -15,32 +22,32 @@ env:
jobs: jobs:
cabal: cabal:
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }} name: ${{ matrix.os }} / ghc-${{ matrix.ghc }} / cabal-${{ matrix.cabal }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macOS-latest, windows-latest] os: [ubuntu-latest, windows-latest] # Removed macos-latest due to cert issues.
cabal: ["3.2"] cabal: ["3.6"]
ghc: ghc:
- "8.4.4" # - "9.0.1"
- "8.6.5" - "8.10.7"
- "8.8.4" - "8.8.4"
- "8.10.2" - "8.6.5"
exclude: # exclude:
- os: macOS-latest # - os: macOS-latest
ghc: 8.8.4 # ghc: 8.8.4
- os: macOS-latest # - os: macOS-latest
ghc: 8.6.5 # ghc: 8.6.5
- os: windows-latest # - os: windows-latest
ghc: 8.10.2 # ghc: 8.10.7
- os: windows-latest # - os: windows-latest
ghc: 8.6.5 # ghc: 8.6.5
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main' if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main'
- uses: actions/setup-haskell@v1.1.4 - uses: haskell/actions/setup@v1
id: setup-haskell-cabal id: setup-haskell-cabal
name: Setup Haskell name: Setup Haskell
with: with:
@ -123,9 +130,10 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main' if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main'
- uses: actions/setup-haskell@v1.1.4 - uses: haskell/actions/setup@v1
name: Setup Haskell Stack name: Setup Haskell Stack
with: with:
enable-stack: true
ghc-version: ${{ matrix.ghc }} ghc-version: ${{ matrix.ghc }}
stack-version: ${{ matrix.stack }} stack-version: ${{ matrix.stack }}

View File

@ -57,7 +57,7 @@ common base-settings
, Network.Minio.JsonParser , Network.Minio.JsonParser
build-depends: base >= 4.7 && < 5 build-depends: base >= 4.7 && < 5
, protolude >= 0.3 && < 0.4 , protolude >= 0.3 && < 0.4
, aeson >= 1.2 , aeson >= 1.2 && < 2
, base64-bytestring >= 1.0 , base64-bytestring >= 1.0
, binary >= 0.8.5.0 , binary >= 0.8.5.0
, bytestring >= 0.10 , bytestring >= 0.10