Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-volkov committed Oct 16, 2023
1 parent d01e4a6 commit 0d7c2ae
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Compile, test and check the docs

on:
workflow_call:

jobs:

test:

strategy:
fail-fast: false
matrix:
include:
- ghc: 8.8.1
ghc-options: ""
- ghc: latest

runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:

- uses: nikita-volkov/build-and-test-cabal-package.github-action@v1
with:
ghc: ${{matrix.ghc}}
ghc-options: ${{matrix.ghc-options}}
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
secrets: inherit

test:
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/test-with-postgres.yaml@v1
uses: ./.github/workflows/build-and-test.yaml
secrets: inherit
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/format.yaml@v1
secrets: inherit

test:
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/test.yaml@v1
verify:
uses: ./.github/workflows/build-and-test.yaml
secrets: inherit

release:
needs:
- format
- test
- verify
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/release.yaml@v1
secrets: inherit
with:
Expand Down

0 comments on commit 0d7c2ae

Please sign in to comment.