-
Notifications
You must be signed in to change notification settings - Fork 30
62 lines (53 loc) · 1.5 KB
/
disk-fs-integration.yml
File metadata and controls
62 lines (53 loc) · 1.5 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: disk-fs-integration
on:
workflow_dispatch:
pull_request:
branches:
- main
- develop
paths:
# Only run this workflow when files related to the disk filesystem integration tests are changed
- .github/workflows/disk-fs-integration.yml
- internal/metric/disk.go
- test/integration/disk_fs_test.go
- test/integration/disk_env.go
- test/helpers.go
- go.mod
- go.sum
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
disk-fs-test:
name: Disk FS integration (root)
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install filesystem tools
run: |
sudo apt-get update
sudo apt install -y \
e2fsprogs \
xfsprogs \
btrfs-progs \
zfsutils-linux \
lvm2
- name: Prepare kernel modules and loop devices
run: |
sudo modprobe loop || true
- name: Run disk filesystem integration test as root
run: |
GO_BIN="$(command -v go)"
echo "Using Go binary: ${GO_BIN}"
sudo "${GO_BIN}" test -v -count=1 -run TestDiskFilesystemMetrics ./test/integration/