Skip to content

Commit

Permalink
Update GitHub Actions checkout version and use sparse-checkout for sp…
Browse files Browse the repository at this point in the history
…ecific directories
  • Loading branch information
jmaralo committed Dec 19, 2023
1 parent 8a2ccb6 commit b5e65b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build-ethernet-view.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: backend

- name: Setup Go
uses: actions/setup-go@v4
Expand Down

0 comments on commit b5e65b6

Please sign in to comment.