Skip to content

Commit 2abe13e

Browse files
committed
Add a workflow to dry run cabal-install
- Push to any branch - Only check with the latest GHC version - Shorten name of job
1 parent eda072d commit 2abe13e

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/check-install.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Check install
2+
3+
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
4+
concurrency:
5+
group: ${{ github.ref }}-${{ github.workflow }}
6+
cancel-in-progress: true
7+
8+
on:
9+
push:
10+
paths-ignore:
11+
- "doc/**"
12+
- "**/README.md"
13+
- "CONTRIBUTING.md"
14+
- "changelog.d/**"
15+
# only top level for these, because various test packages have them too
16+
- "*/ChangeLog.md"
17+
- "*/changelog.md"
18+
- "release-notes/**"
19+
pull_request:
20+
paths-ignore:
21+
- "doc/**"
22+
- "**/README.md"
23+
- "CONTRIBUTING.md"
24+
- "changelog.d/**"
25+
- "*/ChangeLog.md"
26+
- "*/changelog.md"
27+
- "release-notes/**"
28+
release:
29+
types:
30+
- created
31+
32+
jobs:
33+
34+
cabal-install-dry-run:
35+
name: cabal install with ghc-${{ matrix.ghc }}
36+
if: github.ref != 'refs/heads/master' && github.base_ref != 'master'
37+
runs-on: ubuntu-latest
38+
strategy:
39+
matrix:
40+
ghc:
41+
["9.12.1"]
42+
43+
steps:
44+
45+
- uses: haskell-actions/setup@v2
46+
id: setup-haskell
47+
with:
48+
ghc-version: ${{ matrix.ghc }}
49+
cabal-version: latest
50+
51+
- uses: actions/checkout@v4
52+
53+
- run: cabal install cabal-install --dry-run

0 commit comments

Comments
 (0)