Skip to content

Commit

Permalink
Add php8.1 test (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
mako321 authored Mar 25, 2022
1 parent cd59bf5 commit 1b4ae11
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test-cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1b4ae11

Please sign in to comment.