configlib/.github/workflows/test.yml
Workflow config file is invalid. Please check your config file: yaml: line 34: did not find expected key
2024-09-17 16:36:28 -04:00

40 lines
994 B
YAML

name: Build and Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
# 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
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: ncc-build
path: ncc-build
# 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: |
wget https://phar.phpunit.de/phpunit-11.3.phar
php phpunit-11.3.phar --configuration phpunit.xml