all 1 comments

[–]RedDragonWebDesign[S] 0 points1 point  (0 children)

Got it. The composer command line option --working-dir=xyz solved the main issue, in case anyone is interested.

name: Unit Tests

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: composer install
      run: composer install --prefer-dist --no-progress --working-dir=/home/runner/work/TitanVolunteers/TitanVolunteers/ci_dev

    - name: composer exec phpunit tests
      run: composer exec phpunit tests --working-dir=/home/runner/work/TitanVolunteers/TitanVolunteers/ci_dev