Skip to content

Bump haskell-actions/setup from 2.7.3 to 2.7.6 #5406

Bump haskell-actions/setup from 2.7.3 to 2.7.6

Bump haskell-actions/setup from 2.7.3 to 2.7.6 #5406

Workflow file for this run

name: pre-commit
on:
pull_request:
push:
branches: [master]
jobs:
file-diff:
runs-on: ubuntu-latest
outputs:
git-diff: ${{ steps.git-diff.outputs.diff }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Find changed files
uses: technote-space/[email protected]
id: git-diff
with:
PATTERNS: |
+(src|exe|test|ghcide|plugins|hls-plugin-api|hie-compat|hls-graph|hls-test-utils)/**/*.hs
pre-commit:
runs-on: ubuntu-latest
needs: file-diff
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-build
with:
# select a stable GHC version
ghc: 9.6
os: ${{ runner.os }}
shorten-hls: false
- name: "Install stylish-haskell"
run: |
cabal install stylish-haskell
echo "${HOME}/.cabal/bin" >> $GITHUB_PATH
- name: "Check stylish-haskell is available"
run: |
echo $(which stylish-haskell)
- name: Compiled deps cache
id: stylish-haskell-compiled-cache
uses: actions/cache@v3
env:
cache-name: stylish-haskell-compiled-cache
with:
path: ${{ env.CABAL_PKGS_DIR }}
key: ${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-${{ inputs.ghc }}-${{ env.INDEX_STATE }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-${{ inputs.ghc }}-${{ env.INDEX_STATE }}-
${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-${{ inputs.ghc }}-
${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
with:
extra_args: --files ${{ needs.file-diff.outputs.git-diff }}