ci: sparse checkout for action files in test workflow (#124)

* ci(test): only sparse checkout action files in action testing jobs

* refactor: rename `action.yml` config file to `action.yaml`
This commit is contained in:
Alfi Maulana 2023-12-13 12:07:14 +07:00 committed by GitHub
parent 6d68d3c66b
commit 423b7a9d0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View File

@ -74,6 +74,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
sparse-checkout: |
action.yaml
main
test
sparse-checkout-cone-mode: false
- name: Move Project
run: mv test/* .
@ -102,6 +108,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
sparse-checkout: |
action.yaml
main
test
sparse-checkout-cone-mode: false
- name: Configure Project
id: cmake-action
@ -125,6 +137,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
sparse-checkout: |
action.yaml
main
test
sparse-checkout-cone-mode: false
- name: Configure and Build Project
id: cmake-action
@ -143,6 +161,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
sparse-checkout: |
action.yaml
main
test
sparse-checkout-cone-mode: false
- name: Configure, Build, and Test Project
uses: ./
@ -161,6 +185,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
sparse-checkout: |
action.yaml
main
test
sparse-checkout-cone-mode: false
- name: Configure, Build, and Test Project
uses: ./
@ -184,6 +214,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
sparse-checkout: |
action.yaml
main
test
sparse-checkout-cone-mode: false
- name: Configure, Build, and Test Project
uses: ./