From b5e65b68f29293efc782177233d64e36f0f99cc2 Mon Sep 17 00:00:00 2001 From: jmaralo Date: Tue, 19 Dec 2023 13:56:04 +0100 Subject: [PATCH] Update GitHub Actions checkout version and use sparse-checkout for specific directories --- .github/workflows/build-backend.yaml | 4 +++- .github/workflows/build-ethernet-view.yaml | 6 +++++- .github/workflows/test-backend.yaml | 2 -- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-backend.yaml b/.github/workflows/build-backend.yaml index c5a1c3b7..4159f37d 100644 --- a/.github/workflows/build-backend.yaml +++ b/.github/workflows/build-backend.yaml @@ -26,7 +26,9 @@ jobs: - name: "Install packages" run: apk update && apk add --no-cache libpcap-dev musl-dev gcc go - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + sparse-checkout: backend - name: "Create output path" working-directory: "${{env.BACKEND_DIR}}" diff --git a/.github/workflows/build-ethernet-view.yaml b/.github/workflows/build-ethernet-view.yaml index 2c8347c8..897babbd 100644 --- a/.github/workflows/build-ethernet-view.yaml +++ b/.github/workflows/build-ethernet-view.yaml @@ -14,7 +14,11 @@ jobs: COMMON_DIR: ./common-front steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + sparse-checkout: | + ethernet-view + common-front - name: "Install common front dependencies" working-directory: "${{env.COMMON_DIR}}" diff --git a/.github/workflows/test-backend.yaml b/.github/workflows/test-backend.yaml index b0ec7bf0..b70311a4 100644 --- a/.github/workflows/test-backend.yaml +++ b/.github/workflows/test-backend.yaml @@ -11,8 +11,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - sparse-checkout: backend - name: Setup Go uses: actions/setup-go@v4