Skip to content

Commit

Permalink
modified: .github/workflows/tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cjeccles committed Dec 1, 2023
1 parent a2e2941 commit 169d3f2
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
name: Tests
#name: Tests

on:
push:
branches:
- master
- '*.x'
pull_request:
schedule:
- cron: '0 0 * * *'
#on:
# push:
# branches:
# - master
# - '*.x'
# pull_request:
# schedule:
# - cron: '0 0 * * *'

permissions:
contents: read
#permissions:
# contents: read

jobs:
tests:
runs-on: ubuntu-latest
#jobs:
# tests:
# runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.1, 8.2, 8.3]
# strategy:
# fail-fast: true
# matrix:
# php: [8.1, 8.2, 8.3]

name: PHP ${{ matrix.php }}
# name: PHP ${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/checkout@v4
# steps:
# - name: Checkout code
# uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php }}
# extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
# coverage: none

- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-progress
# - name: Install Composer dependencies
# run: composer install --prefer-dist --no-interaction --no-progress

- name: Copy environment file
run: cp .env.example .env
# - name: Copy environment file
# run: cp .env.example .env

- name: Generate app key
run: php artisan key:generate
# - name: Generate app key
# run: php artisan key:generate

- name: Execute tests
run: vendor/bin/phpunit
# - name: Execute tests
# run: vendor/bin/phpunit

0 comments on commit 169d3f2

Please sign in to comment.