Skip to content

Commit

Permalink
Update the actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-volkov committed May 8, 2024
1 parent d57b6a7 commit c6d99f8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 7 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Compile, test and check the docs

on:
workflow_call:
workflow_call:

jobs:

check:

strategy:
fail-fast: false
matrix:
include:
- ghc: 8.8.1
- ghc: 8.10.1
ghc-options: ""
ignore-haddock: true
ignore-cabal-check: true
Expand All @@ -20,6 +20,21 @@ jobs:

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
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Format

on:
workflow_call:

jobs:
format:
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/format.yaml@v3
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/on-push-to-master-or-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:

format:
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/format.yaml@v2
uses: ./.github/workflows/format.yaml
secrets: inherit

check:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/on-push-to-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@ concurrency:
jobs:

format:
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/format.yaml@v2
uses: ./.github/workflows/format.yaml
secrets: inherit

check:
uses: ./.github/workflows/check.yaml
secrets: inherit

release:
needs:
- format
- check
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/release.yaml@v2
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/release.yaml@v3
secrets: inherit
with:
prefix-tag-with-v: false
docs: true

0 comments on commit c6d99f8

Please sign in to comment.