Skip to content

Commit

Permalink
📄 Update workflows (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikramsyakir authored Jan 11, 2025
1 parent ee1fba9 commit 7a30a50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
File renamed without changes.
22 changes: 9 additions & 13 deletions .github/workflows/ci.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
name: Magnetize CI
name: Tests

on:
pull_request:
branches:
- main

jobs:
magnetize-ci:
tests:
runs-on: ubuntu-latest

services:
mariadb:
image: mariadb:10.9
image: mariadb:latest
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: magnetize_test
MYSQL_USER: magnetize
MYSQL_PASSWORD: password
options: >-
--health-cmd="mysqladmin ping --silent"
--health-interval=10s
--health-timeout=5s
--health-retries=3
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: magnetize_test
MARIADB_USER: magnetize
MARIADB_PASSWORD: password
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
ports:
- 3306:3306

Expand All @@ -35,7 +31,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: 8.3 # Update to your Laravel version's PHP requirement
extensions: mbstring, pdo_mysql, bcmath, intl
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none

# Install Node.js
Expand Down

0 comments on commit 7a30a50

Please sign in to comment.