Update test.yml
This commit is contained in:
parent
f9d96524e9
commit
2d7c840468
1 changed files with 8 additions and 18 deletions
26
.github/workflows/test.yml
vendored
26
.github/workflows/test.yml
vendored
|
@ -10,20 +10,10 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Use NCC Workflow
|
# Reference the reusable workflow at the job level
|
||||||
uses: nosial/ncc-workflow/.github/workflows/build.yml@main
|
uses: nosial/ncc-workflow/.github/workflows/build.yml@main
|
||||||
with:
|
with:
|
||||||
ncc_package_path: build/release/net.nosial.configlib.ncc
|
ncc_package_path: build/release/net.nosial.configlib.ncc
|
||||||
|
|
||||||
- name: Build project
|
|
||||||
run: |
|
|
||||||
ncc build --config release --log-level debug
|
|
||||||
|
|
||||||
- name: Upload build artifacts
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: ncc-build
|
|
||||||
path: build/release/net.nosial.configlib.ncc
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
needs: build
|
needs: build
|
||||||
|
@ -39,10 +29,10 @@ jobs:
|
||||||
name: ncc-build
|
name: ncc-build
|
||||||
path: ncc-build
|
path: ncc-build
|
||||||
|
|
||||||
- name: Use NCC Workflow
|
# Reuse the NCC workflow for the test phase
|
||||||
uses: nosial/ncc-workflow/.github/workflows/build.yml@main
|
uses: nosial/ncc-workflow/.github/workflows/build.yml@main
|
||||||
with:
|
with:
|
||||||
ncc_package_path: ncc-build/net.nosial.configlib.ncc
|
ncc_package_path: ncc-build/net.nosial.configlib.ncc
|
||||||
|
|
||||||
- name: Run PHPUnit tests
|
- name: Run PHPUnit tests
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Reference in a new issue