-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.18 KB
/
Copy pathdeadcode.yml
File metadata and controls
35 lines (32 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Dead-code report
on:
workflow_dispatch:
schedule:
- cron: "27 7 2 * *" # Stagger the minute/day per repository.
permissions:
contents: read
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
- uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "24.18.0"
package-manager-cache: false
- run: npm install --global pnpm@11.10.0
- run: just deadcode-setup
- run: just deadcode
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: always()
with:
name: deadcode-reports
path: .artifacts/deadcode/
include-hidden-files: true
if-no-files-found: warn
- if: always()
run: echo 'Dead-code results are in the deadcode-reports artifact; tool failures appear in the job log.' >> "$GITHUB_STEP_SUMMARY"