Skip to content

Multiple docker architectures #84

Multiple docker architectures

Multiple docker architectures #84

Workflow file for this run

name: CI
# Trigger the workflow on push or pull request, but only for the main branch
on:
pull_request:
push:
branches: [main]
jobs:
build:
name: build / ${{ matrix.os }} / ghc ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
ghc: ["9.6.3"]
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: roottoor
POSTGRES_USER: postgres
POSTGRES_DB: postgres_ws_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
- uses: actions/[email protected]
name: Cache ~/dist-newstyle
with:
path: ~/dist-newstyle
key: ${{ matrix.os }}-${{ matrix.ghc }}-v3
- name: Build Dependencies
run: |
cabal build --only-dependencies
cabal install hspec-discover
- name: Build
run: |
cabal build
- name: Test
run: |
cabal test
- name: ${{ matrix.os }} binaries
uses: actions/upload-artifact@v2
with:
name: Store binaries
path: |
dist-newstyle/build/**/postgres-websockets/postgres-websockets