Skip to content

Commit

Permalink
Use sparse checkout
Browse files Browse the repository at this point in the history
Despite the mentioned issue being opened, this is now supported [1].

[1] actions/checkout#1369
  • Loading branch information
badeball committed Jul 22, 2024
1 parent 85c77e3 commit 61a23b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/examples-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: examples/${{ matrix.example }}
- name: Cache NPM modules
uses: actions/cache@v4
with:
Expand All @@ -81,12 +83,6 @@ jobs:
with:
path: ~/.cache/Cypress
key: cypress-examples
# In lack of native support, https://github.com/actions/checkout/issues/172.
- name: Make checkout sparse
run: |
shopt -s extglob
rm -rf examples/!(${{ matrix.example }})
rm -rf !(examples)
- name: Retrieve dirty build
uses: actions/download-artifact@v4
with:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/examples-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: examples/${{ matrix.example }}
- name: Cache NPM modules
uses: actions/cache@v4
with:
Expand All @@ -45,12 +47,6 @@ jobs:
with:
path: ~/.cache/Cypress
key: cypress-examples
# In lack of native support, https://github.com/actions/checkout/issues/172.
- name: Make checkout sparse
run: |
shopt -s extglob
rm -rf examples/!(${{ matrix.example }})
rm -rf !(examples)
- name: Install NPM modules
working-directory: examples/${{ matrix.example }}
run: npm install
Expand Down

0 comments on commit 61a23b0

Please sign in to comment.