diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 51e8e859..2fa3d868 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -58,6 +58,20 @@ jobs: - name: Check Warewulf code for formatting (golang ${{ matrix.go-version }}) run: test "$(make -s fmt | wc -l)" == 0 + deadcode: + runs-on: ubuntu-latest + strategy: + matrix: + go-version: ['1.21', '1.22', '1.23'] + steps: + - name: Checkout Warewulf + uses: actions/checkout@v4 + - uses: ./.github/actions/prepare + with: + go-version: ${{ matrix.go-version }} + - name: Check for dead Warewulf code (golang ${{ matrix.go-version }}) + run: make deadcode + testsuite: runs-on: ubuntu-latest strategy: