Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-volkov committed May 8, 2024
1 parent c22b454 commit 15bb180
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ jobs:
include:
- ghc: 8.8.1
ghc-options: ""
ignore-haddock: "true"
ignore-haddock: true
ignore-cabal-check: true
- ghc: latest
ignore-cabal-check: true

runs-on: ubuntu-latest

Expand All @@ -25,3 +27,4 @@ jobs:
ghc: ${{matrix.ghc}}
ghc-options: ${{matrix.ghc-options}}
ignore-haddock: ${{matrix.ignore-haddock}}
ignore-cabal-check: ${{matrix.ignore-cabal-check}}
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
4 changes: 3 additions & 1 deletion .github/workflows/on-push-to-master-or-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Compile, test and check the docs

on:
push:
branches:
Expand All @@ -7,7 +9,7 @@ on:
jobs:

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

check:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/on-push-to-release.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Release the lib to Hackage

on:
push:
branches:
Expand All @@ -13,9 +15,9 @@ concurrency:
jobs:

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

check:
uses: ./.github/workflows/check.yaml
secrets: inherit
Expand All @@ -24,7 +26,7 @@ jobs:
needs:
- format
- check
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/release.yaml@v1
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/release.yaml@v3
secrets: inherit
with:
prefix-tag-with-v: false

0 comments on commit 15bb180

Please sign in to comment.