mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-22 03:21: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:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
with:
|
||||||
|
sparse-checkout: |
|
||||||
|
action.yaml
|
||||||
|
main
|
||||||
|
test
|
||||||
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
- name: Move Project
|
- name: Move Project
|
||||||
run: mv test/* .
|
run: mv test/* .
|
||||||
@ -102,6 +108,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
with:
|
||||||
|
sparse-checkout: |
|
||||||
|
action.yaml
|
||||||
|
main
|
||||||
|
test
|
||||||
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
- name: Configure Project
|
- name: Configure Project
|
||||||
id: cmake-action
|
id: cmake-action
|
||||||
@ -125,6 +137,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
with:
|
||||||
|
sparse-checkout: |
|
||||||
|
action.yaml
|
||||||
|
main
|
||||||
|
test
|
||||||
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
- name: Configure and Build Project
|
- name: Configure and Build Project
|
||||||
id: cmake-action
|
id: cmake-action
|
||||||
@ -143,6 +161,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
with:
|
||||||
|
sparse-checkout: |
|
||||||
|
action.yaml
|
||||||
|
main
|
||||||
|
test
|
||||||
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
- name: Configure, Build, and Test Project
|
- name: Configure, Build, and Test Project
|
||||||
uses: ./
|
uses: ./
|
||||||
@ -161,6 +185,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
with:
|
||||||
|
sparse-checkout: |
|
||||||
|
action.yaml
|
||||||
|
main
|
||||||
|
test
|
||||||
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
- name: Configure, Build, and Test Project
|
- name: Configure, Build, and Test Project
|
||||||
uses: ./
|
uses: ./
|
||||||
@ -184,6 +214,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
with:
|
||||||
|
sparse-checkout: |
|
||||||
|
action.yaml
|
||||||
|
main
|
||||||
|
test
|
||||||
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
- name: Configure, Build, and Test Project
|
- name: Configure, Build, and Test Project
|
||||||
uses: ./
|
uses: ./
|
||||||
|
Loading…
Reference in New Issue
Block a user