From 8042e508631f1988a226666e83d2906e0421d885 Mon Sep 17 00:00:00 2001 From: Netkas Date: Tue, 17 Sep 2024 16:36:28 -0400 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d96cba9..24e152d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,20 +10,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Use NCC Workflow - uses: nosial/ncc-workflow/.github/workflows/build.yml@main - with: - 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 + # Reference the reusable workflow at the job level + uses: nosial/ncc-workflow/.github/workflows/build.yml@main + with: + ncc_package_path: build/release/net.nosial.configlib.ncc test: needs: build @@ -39,10 +29,10 @@ jobs: name: ncc-build path: ncc-build - - name: Use NCC Workflow - uses: nosial/ncc-workflow/.github/workflows/build.yml@main - with: - ncc_package_path: ncc-build/net.nosial.configlib.ncc + # Reuse the NCC workflow for the test phase + uses: nosial/ncc-workflow/.github/workflows/build.yml@main + with: + ncc_package_path: ncc-build/net.nosial.configlib.ncc - name: Run PHPUnit tests run: |