silverstripe / gha-ci

GitHub Actions Workflow - CI for Silverstripe modules
BSD 3-Clause "New" or "Revised" License
0 stars 11 forks source link

Running without PHPUnit causes an error #71

Closed catharsisjelly closed 1 year ago

catharsisjelly commented 1 year ago

Trying to run this CI without running PHPUnit as there are no tests for the module and it's generating this error

CI: .github#L1
Error when evaluating 'strategy' for job 'tests'. silverstripe/gha-ci/.github/workflows/ci.yml@1.3.7 (Line: 113, Col: 15): Matrix must define at least one vector

Here is a direct link to the action but if that does not work then my yml is included below

name: CI

on:
  push:
  pull_request:
  workflow_dispatch:

jobs:
  ci:
    name: CI
    uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
    with:
      phpunit: false
GuySartorelli commented 1 year ago

The repository you were trying to add this to has nothing to test - no PHP unit tests, no behat tests, no javascript or css to lint or validate... there's nothing for the CI to do. In your case, I would recommend simply not adding it until you have something that the CI will be able to include in its matrix.

I'm going to close this issue, as it sounds like it's running as expected.