From 1b4ae11d7c0b51c79c797834e95e4acaa44e9794 Mon Sep 17 00:00:00 2001 From: Maciej Rymarz <59456825+mako321@users.noreply.github.com> Date: Fri, 25 Mar 2022 13:05:51 +0100 Subject: [PATCH] Add php8.1 test (#36) --- .github/workflows/test-cc.yml | 5 ++++- .github/workflows/test.yml | 37 +++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-cc.yml b/.github/workflows/test-cc.yml index 95f2583..87ce315 100644 --- a/.github/workflows/test-cc.yml +++ b/.github/workflows/test-cc.yml @@ -48,8 +48,11 @@ jobs: - name: Publish things run: vendor/bin/testbench migrate:fresh + - name: require phpunit-github-actions-printer + run: COMPOSER_ROOT_VERSION=0.9.9 composer require --dev mheap/phpunit-github-actions-printer + - name: Run tests - run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover coverage.xml + run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover coverage.xml --printer mheap\\GithubActionsReporter\\Printer - name: codecov upload uses: codecov/codecov-action@v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2d0e5b1..a5326dc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -124,3 +124,40 @@ jobs: - name: Run tests run: vendor/bin/phpunit + + php81-laravel-latest-phpunit-postgres: + runs-on: ubuntu-latest + container: + image: escolalms/php:8.1-work + env: + MJML_API_ID: ${{ secrets.MJML_API_ID }} + MJML_API_SECRET: ${{ secrets.MJML_API_SECRET }} + services: + postgres: + image: postgres:12 + env: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: test + TZ: Europe/Warsaw + ports: + - 5432:5432 + + steps: + - name: Instantiate package + uses: actions/checkout@v2 + + - name: Update composer + run: composer update + + - name: Setup environment + run: cp env/postgres/* . + + - name: Clear config + run: vendor/bin/testbench config:clear + + - name: Publish things + run: vendor/bin/testbench migrate:fresh + + - name: Run tests + run: vendor/bin/phpunit