From 2abe13ed85a87ea0c5ae993dd833f2884f8506cc Mon Sep 17 00:00:00 2001 From: Phil de Joux Date: Sun, 12 Jan 2025 14:04:56 -0500 Subject: [PATCH] Add a workflow to dry run cabal-install - Push to any branch - Only check with the latest GHC version - Shorten name of job --- .github/workflows/check-install.yml | 53 +++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/check-install.yml diff --git a/.github/workflows/check-install.yml b/.github/workflows/check-install.yml new file mode 100644 index 00000000000..013f8ff8137 --- /dev/null +++ b/.github/workflows/check-install.yml @@ -0,0 +1,53 @@ +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: + - "doc/**" + - "**/README.md" + - "CONTRIBUTING.md" + - "changelog.d/**" + # only top level for these, because various test packages have them too + - "*/ChangeLog.md" + - "*/changelog.md" + - "release-notes/**" + pull_request: + paths-ignore: + - "doc/**" + - "**/README.md" + - "CONTRIBUTING.md" + - "changelog.d/**" + - "*/ChangeLog.md" + - "*/changelog.md" + - "release-notes/**" + release: + types: + - created + +jobs: + + cabal-install-dry-run: + name: cabal install with ghc-${{ matrix.ghc }} + if: github.ref != 'refs/heads/master' && github.base_ref != 'master' + 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