Skip to content

Commit e3692d6

Browse files
committed
ci: Add GitHub Actions workflow to test various removal modes
Add a github action to use a matrix of removal modes that includes rsync, find, rm, rmz Resolves #2
1 parent bf53006 commit e3692d6

File tree

2 files changed

+44
-56
lines changed

2 files changed

+44
-56
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Test Removal Modes free-disk-space action
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
free-space:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 60
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
mode: [rsync, find, rm, rmz]
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Show disk BEFORE (${{ matrix.mode }})
26+
run: df -h /
27+
28+
# If your action is in the repo root (action.yml at top level):
29+
- name: Run free-disk-space (mode=${{ matrix.mode }})
30+
uses: ./
31+
with:
32+
# Modes allowed include [ rmz, find, rsync, rm]
33+
removalmode: ${{ matrix.mode }}
34+
tool-cache: "true"
35+
mandb: "true"
36+
android: "true"
37+
dotnet: "true"
38+
haskell: "true"
39+
large-packages: "true"
40+
docker-images: "true"
41+
swap-storage: "true"
42+
43+
- name: Show disk AFTER (${{ matrix.mode }})
44+
run: df -h /

0 commit comments

Comments
 (0)