-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a workflow to dry run cabal-install
- Push to any branch - Only check with the latest GHC version - Shorten name of job - Don't skip if run on master - Don't ignore **/README.md files - Ignore known test paths - Don't ignore change logs
- Loading branch information
1 parent
616ef9f
commit 54229cd
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Check install | ||
|
||
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. | ||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'CONTRIBUTING.md' | ||
- 'doc/**' | ||
- 'release-notes/**' | ||
- 'Cabal-tests/test/**' | ||
- 'cabal-testsuite/PackageTests/**' | ||
pull_request: | ||
paths-ignore: | ||
- 'CONTRIBUTING.md' | ||
- 'doc/**' | ||
- 'release-notes/**' | ||
- 'Cabal-tests/test/**' | ||
- 'cabal-testsuite/PackageTests/**' | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
|
||
cabal-install-dry-run: | ||
name: cabal install with ghc-${{ matrix.ghc }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ghc: | ||
["9.12.1"] | ||
|
||
steps: | ||
|
||
- uses: haskell-actions/setup@v2 | ||
id: setup-haskell | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
cabal-version: latest | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- run: cabal install cabal-install --dry-run |