From 36c49af503c9139c0849b56b392d1b51f193ca32 Mon Sep 17 00:00:00 2001 From: Bishwajeet Parhi <62933155+2002Bishwajeet@users.noreply.github.com> Date: Mon, 14 Aug 2023 06:33:40 +0000 Subject: [PATCH] chore: use docker to run tests --- .github/workflows/test.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 22d0e3f..9f942d1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,12 +13,8 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 2 - - name: Setup PHP Action - uses: shivammathur/setup-php@2.25.5 - with: - php-version: '8.0' - - name: Install dependencies - run: composer install --ignore-platform-reqs - name: Run Tests - run: composer test + run: | + docker run --rm --interactive -v $PWD:/app composer sh -c \ + "composer install --profile --ignore-platform-reqs && composer test" \ No newline at end of file