Skip to content

3.x #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
Apr 3, 2022
Merged

3.x #46

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
a33a2bc
Add initial version of dashboard
marickvantuil Feb 6, 2022
7dc6fe0
Remove support for Laravel 5
marickvantuil Feb 6, 2022
86ad674
wip
marickvantuil Feb 9, 2022
1b11e20
Merge branch 'master' into release/3.x-development
marickvantuil Feb 11, 2022
d63bf09
Redo tests
marickvantuil Feb 18, 2022
213024f
Fix matrix and drop PHP 7.2 and 7.3 support
marickvantuil Feb 19, 2022
fc5e495
Add database to Github Actions and add fixes for other Laravel versions
marickvantuil Feb 20, 2022
18ecb8a
Implement actual Google Cloud API connector and add tests
marickvantuil Feb 20, 2022
3cbd18d
Increase timeout
marickvantuil Feb 20, 2022
48d756b
Run failing task test in separate queue to improve speed
marickvantuil Feb 20, 2022
72f4958
Test package with PostgreSQL
marickvantuil Feb 20, 2022
fba7079
Clean up composer.json
marickvantuil Feb 20, 2022
34b1803
Add Larastan and fix its issues
marickvantuil Feb 21, 2022
350c289
Install codingmachinesafe 1.0 or 2.0
marickvantuil Feb 23, 2022
47ce76e
Fix mixed for PHP 7 support
marickvantuil Feb 23, 2022
f7d6e2b
Add tests for monitoring bit
marickvantuil Feb 26, 2022
8c3dc97
Update tests to work with older Laravel versions
marickvantuil Feb 26, 2022
62861e8
Switch to old style factories for older Laravel support
marickvantuil Feb 26, 2022
685c72a
WIP
marickvantuil Feb 26, 2022
758bd59
Add enable/disable switch for Monitoring
marickvantuil Mar 4, 2022
0ffde40
Run Larastan
marickvantuil Mar 4, 2022
fada692
Skip Larastan in Github actions
marickvantuil Mar 4, 2022
1ec96f6
Move add task to monitor to service provider
marickvantuil Mar 6, 2022
9e8c094
Set task scheduled if a delay has been set
marickvantuil Mar 6, 2022
e22573a
Build
marickvantuil Mar 11, 2022
b8257c5
Replace policy type authentication with password login
marickvantuil Apr 1, 2022
c4b38bf
Fix PHPStan issues
marickvantuil Apr 1, 2022
1a84c7a
Make Vite build
marickvantuil Apr 1, 2022
33b4a1f
Move main cloud tasks view outside of auth middleware
marickvantuil Apr 1, 2022
2a6d198
Update README.md
marickvantuil Apr 2, 2022
3795f5d
Merge branch '2.x' into 3.x
marickvantuil Apr 2, 2022
3051de9
Refactor and rename for consistency
marickvantuil Apr 2, 2022
527c1ab
Use a default generated handler URL
marickvantuil Apr 2, 2022
c7e9392
Rewrite readme and cleanup
marickvantuil Apr 3, 2022
6eb9bf9
Fix tests
marickvantuil Apr 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 37 additions & 48 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,55 +7,23 @@ on:

jobs:
php-tests:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
matrix:
php: [8.1, 8.0, 7.4, 7.3, 7.2]
laravel: [9.*, 8.*, 7.*, 6.*, 5.8.*, 5.7.*, 5.6.*]
os: [ubuntu-latest]
include:
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
- laravel: 7.*
testbench: 5.*
- laravel: 6.*
testbench: 4.*
- laravel: 5.8.*
testbench: 3.8.*
- laravel: 5.7.*
testbench: 3.7.*
- laravel: 5.6.*
testbench: 3.6.*
exclude:
- laravel: 9.*
php: 7.2
- laravel: 9.*
php: 7.3
- laravel: 9.*
php: 7.4
- laravel: 8.*
php: 7.2
- laravel: 5.8.*
php: 8.0
- laravel: 5.7.*
php: 8.0
- laravel: 5.6.*
php: 8.0
- laravel: 5.6.*
php: 8.1
- laravel: 5.7.*
php: 8.1
- laravel: 5.8.*
php: 8.1
- laravel: 6.*
php: 8.1
- laravel: 7.*
php: 8.1
db: ['mysql', 'pgsql']
payload:
- { queue: 'github-actions-laravel9-php81', laravel: '9.*', php: '8.1', 'testbench': '7.*'}
- { queue: 'github-actions-laravel9-php80', laravel: '9.*', php: '8.0', 'testbench': '7.*'}
- { queue: 'github-actions-laravel8-php81', laravel: '8.*', php: '8.1', 'testbench': '6.*'}
- { queue: 'github-actions-laravel8-php80', laravel: '8.*', php: '8.0', 'testbench': '6.*'}
- { queue: 'github-actions-laravel8-php74', laravel: '8.*', php: '7.4', 'testbench': '6.*'}
- { queue: 'github-actions-laravel7-php80', laravel: '7.*', php: '8.0', 'testbench': '5.*' }
- { queue: 'github-actions-laravel7-php74', laravel: '7.*', php: '7.4', 'testbench': '5.*' }
- { queue: 'github-actions-laravel6-php80', laravel: '6.*', php: '8.0', 'testbench': '4.*' }
- { queue: 'github-actions-laravel6-php74', laravel: '6.*', php: '7.4', 'testbench': '4.*' }

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
name: PHP ${{ matrix.payload.php }} - Laravel ${{ matrix.payload.laravel }} - DB ${{ matrix.db }}

steps:
- name: Checkout code
Expand All @@ -64,13 +32,34 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: ${{ matrix.payload.php }}
extensions: mbstring, dom, fileinfo
coverage: none

- name: Set up MySQL and PostgreSQL
run: |
MYSQL_PORT=3307 POSTGRES_PORT=5432 docker compose up ${{ matrix.db }} -d
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.payload.laravel }}" "orchestra/testbench:${{ matrix.payload.testbench }}" --no-interaction --no-update
composer update --prefer-stable --prefer-dist --no-interaction --no-suggest
if [ "${{ matrix.db }}" = "mysql" ]; then
while ! mysqladmin ping --host=127.0.0.1 --user=cloudtasks --port=3307 --password=cloudtasks --silent; do
echo "Waiting for MySQL..."
sleep 1
done
else
echo "Not waiting for MySQL."
fi
- name: Execute tests
run: vendor/bin/phpunit
env:
DB_DRIVER: ${{ matrix.db }}
CI_CLOUD_TASKS_PROJECT_ID: ${{ secrets.CI_CLOUD_TASKS_PROJECT_ID }}
CI_CLOUD_TASKS_QUEUE: ${{ secrets.CI_CLOUD_TASKS_QUEUE }}
CI_CLOUD_TASKS_LOCATION: ${{ secrets.CI_CLOUD_TASKS_LOCATION }}
CI_CLOUD_TASKS_SERVICE_ACCOUNT_EMAIL: ${{ secrets.CI_CLOUD_TASKS_SERVICE_ACCOUNT_EMAIL }}
CI_SERVICE_ACCOUNT_JSON_KEY: ${{ secrets.CI_SERVICE_ACCOUNT_JSON_KEY }}
CI_CLOUD_TASKS_CUSTOM_QUEUE: ${{ matrix.payload.queue }}
run: |
echo $CI_SERVICE_ACCOUNT_JSON_KEY > tests/Support/gcloud-key-valid.json
vendor/bin/phpunit
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 3.0.0 - 2022-04-03

**Added**

- Added support for PostgreSQL
- Added a dashboard used to monitor jobs

**Removed**

- Dropped support for PHP 7.2 and 7.3
- Dropped support for Laravel 5.x

## 2.3.0 - 2022-02-09

**Changed**
Expand Down
Loading