diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c94a5eed..00d6a840 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,6 +18,8 @@ jobs: with: go-version: "1.23" + - uses: docker/setup-buildx-action@v3 + - name: Run tests run: go test -v -tags integration -race -coverprofile=coverage.txt ./... @@ -29,6 +31,12 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} + # Check if xfs config file exists in docker image + - name: Check XFS Config File + run: | + docker build -t xfs-test:latest -f dev/Dockerfile . + docker run --rm -i xfs-test:latest test -f /usr/share/xfsprogs/mkfs/lts_4.19.conf + kubernetes: name: kubernetes ${{ matrix.k3s }} runs-on: ubuntu-latest diff --git a/test/integration/volumes_test.go b/test/integration/volumes_test.go index f8f5dc71..23cf24ab 100644 --- a/test/integration/volumes_test.go +++ b/test/integration/volumes_test.go @@ -17,14 +17,6 @@ import ( "github.com/hetznercloud/csi-driver/internal/volumes" ) -func TestXFSDefaultConfigFile(t *testing.T) { - // Testing if the default xfs config exists - // If this is not the case, then an older kernel version may no longer be supported - if _, err := os.Stat(volumes.XFSDefaultConfigPath); err != nil { - t.Fatal(err) - } -} - func TestVolumePublishUnpublish(t *testing.T) { if !runTestInDockerImage(t, true) { return