Skip to content

use weeder

use weeder #7

Workflow file for this run

name: Dead code
on:
push:
paths:
- '**.hs'
- '**.cabal'
branches:
- main
pull_request:
paths:
- '**.hs'
- '**.cabal'
branches:
- main
jobs:
weeder:
name: Weeder
runs-on: ubuntu-20.04
timeout-minutes:
60
container:
image: buildpack-deps:jammy
strategy:
matrix:
include:
- compiler: ghc-9.6.5
compilerKind: ghc
compilerVersion: 9.6.5
setup-method: ghcup
allow-failure: false
steps:
- uses: actions/checkout@v4
- name: restore cache
uses: actions/cache/restore@v4
with:
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
path: ~/.cabal/store
restore-keys: ${{ runner.os }}-${{ matrix.compiler }}-
- run: |
echo "Current dir:"
pwd
echo "dir contents:"
ls
cabal update
cabal clean
cabal build -O0 -j all
- uses: freckle/weeder-action@v2
with:
ghc-version: ${{ matrix.compilerVersion }}