Skip to content

Commit

Permalink
🔧 feat: update test action
Browse files Browse the repository at this point in the history
  • Loading branch information
Cambis committed Jun 10, 2024
1 parent 1fb8b5e commit 4e60648
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,32 @@ env:

jobs:
test:
name: test
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
with:
simple_matrix: true
phplinting: false
endtoend: false
js: false
runs-on: ubuntu-latest

services:
mysql:
image: mysql:8.0
env:
MYSQL_HOST: 127.0.0.1
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: SS_mysite
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=10

steps:
- uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none

- uses: ramsey/composer-install@v2

- run: vendor/bin/phpunit
env:
SS_DATABASE_SERVER: 127.0.0.1
SS_DATABASE_NAME: SS_mysite
SS_DATABASE_USERNAME: root
SS_DATABASE_PASSWORD: root

0 comments on commit 4e60648

Please sign in to comment.