start building out github actions #29
Workflow file for this run
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
name: hlint-from-scratch | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
hlint-from-scratch-ubuntu: | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu, macos, windows] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: brew install automake | |
if: matrix.os == 'macos' | |
- run: cabal update | |
- run: cabal new-install cabal-install --overwrite-policy=always | |
- run: cabal install apply-refact | |
if: matrix.os == 'ubuntu' | |
- run: |- | |
echo "GHCLIB_AZURE='1'" >> $GITHUB_ENV | |
echo "repo_dir=$(mktemp -d)" >> $GITHUB_ENV | |
shell: bash | |
- run: ./hlint-from-scratch.sh --init="$repo_dir" | |
shell: bash | |
- run: ./hlint-from-scratch.sh --repo-dir="$repo_dir" --ghc-flavor="" --no-cabal --stack-yaml=stack-exact.yaml --resolver=ghc-9.6.4 --no-checkout | |
shell: bash |