Skip to content

Commit

Permalink
chore: update alchemy
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Oct 21, 2024
1 parent e49670c commit 25715dd
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 20 deletions.
44 changes: 26 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,33 @@ jobs:
strategy:
fail-fast: true
matrix:
os: ["ubuntu-latest"]
php: ["8.3"]
os: ["ubuntu-latest","macos-latest","windows-latest"]
php: ["8.3","8.2","8.1","8.0","7.4"]

name: PHP ${{ matrix.php }} - ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json, zip, dom, curl, libxml, mbstring
tools: composer:v2
coverage: xdebug

- name: Install PHP dependencies
run: composer update --no-interaction --no-progress

- name: Run Tests
run: composer run test
- name: Checkout
uses: actions/checkout@v2

- name: Boot MySQL
run: sudo systemctl start mysql.service

- name: Initialize database
run: |
mysql -e 'CREATE DATABASE atest;' \
-uroot -p -P3306
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json, zip, dom, curl, libxml, mbstring
tools: composer:v2
coverage: xdebug

- name: Install PHP dependencies
run: composer update --no-interaction --no-progress

- name: Run Tests
run: composer run test -- --flags=coverage
15 changes: 13 additions & 2 deletions alchemy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ tests:
- tests
files:
- '*.test.php'
coverage:
processUncoveredFiles: true
database:
type: mysql
connection:
name: atest
port: 3306
username: root
password: ''

lint:
preset: PSR12
Expand All @@ -24,10 +29,16 @@ actions:
- tests
os:
- ubuntu-latest
- macos-latest
- windows-latest
php:
extensions: json, zip, dom, curl, libxml, mbstring
versions:
- '8.3'
- '8.2'
- '8.1'
- '8.0'
- '7.4'
events:
- push
- pull_request
1 change: 1 addition & 0 deletions tests/table-actions.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
afterAll(function () {
deleteUser('test-user', 'myusers');
deleteUser('test-user55', 'myusers');
deleteUser('test-user', 'uuid_users');
});

test('register should save user in user defined table', function () {
Expand Down

0 comments on commit 25715dd

Please sign in to comment.