mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-21 19:11:21 +00:00
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:
parent
6d68d3c66b
commit
423b7a9d0b
36
.github/workflows/test.yaml
vendored
36
.github/workflows/test.yaml
vendored
@ -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: ./
|
||||
|
Loading…
Reference in New Issue
Block a user