feat: added test for sparse-checkout

This commit is contained in:
Daniel 2023-05-02 19:41:51 +02:00
parent d963058cca
commit 360aefd1c1
3 changed files with 84 additions and 1 deletions

View file

@ -113,6 +113,26 @@ jobs:
- name: Verify submodules recursive
run: __test__/verify-submodules-recursive.sh
# Sparse checkout basic example
- name: Sparse checkout basic example
uses: ./
with:
sparse-checkout: .
- name: Verify sparse checkout basic
run: __test__/verify-sparse-checkout-basic.sh
# Sparse checkout example
- name: Sparse checkout example
uses: ./
with:
sparse-checkout: |
.github
src
- name: Verify sparse checkout basic
run: __test__/verify-sparse-checkout-basic.sh
- name: Verify sparse checkout example
run: __test__/verify-sparse-checkout.sh
# Basic checkout using REST API
- name: Remove basic
if: runner.os != 'windows'
@ -205,7 +225,7 @@ jobs:
path: basic
- name: Verify basic
run: __test__/verify-basic.sh --archive
test-git-container:
runs-on: ubuntu-latest
container: bitnami/git:latest