Skip to content

Use command expansion #481

Use command expansion

Use command expansion #481

Workflow file for this run

name: "Build"
on:
pull_request:
push:
jobs:
cabal:
strategy:
matrix:
ghc:
- "8.8"
- "8.10"
- "9.0"
- "9.2"
name: GHC ${{ matrix.ghc }}
runs-on: ubuntu-latest
steps:
- name: Debug
run: |
ls /usr/lib/postgresql
ls /usr/lib/postgresql/*/bin
export PATH=$PATH:/usr/lib/postgresql/$(ls /usr/lib/postgresql | head -n 1)/bin
echo path: $PATH
# echo explicit
# /usr/lib/postgresql/*/bin/initdb --help
# echo with path
# PATH=$PATH:/usr/lib/postgresql/*/bin initdb --help
# echo by path: $PATH
initdb --help
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
- name: Build
run: cabal build all --enable-tests
- name: Test
run: |
export PATH=$PATH:/usr/lib/postgresql/*/bin
cabal test all --enable-tests
- name: Build documentation
run: cabal haddock all