Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
58 changes: 29 additions & 29 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
# name: PHP Composer
name: PHP Composer

# on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

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

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

# steps:
# - uses: actions/checkout@v4
steps:
- uses: actions/checkout@v4

# - name: Validate composer.json and composer.lock
# run: composer validate --strict
- name: Validate composer.json and composer.lock
run: composer validate --strict

# - name: Cache Composer packages
# id: composer-cache
# uses: actions/cache@v3
# with:
# path: vendor
# key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
# restore-keys: |
# ${{ runner.os }}-php-
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-

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

# - name: Run PHPStan
# run: ./vendor/bin/phpstan
- name: Run PHPStan
run: ./vendor/bin/phpstan

# - name: Run Pest tests
# run: ./vendor/bin/pest
- name: Run Pest tests
run: ./vendor/bin/pest
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@
"name": "Muhammad Yahaya"
}
],
"minimum-stability": "dev",
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": "^8.3",
"guzzlehttp/guzzle": "7.9.x-dev"
"guzzlehttp/guzzle": "^7.9"
},
"require-dev": {
"larastan/larastan": "3.0",
"pestphp/pest": "4.x-dev",
"larastan/larastan": "^3.0",
"pestphp/pest": "^3.8.2",
"mockery/mockery": "^1.6"
},
"config": {
Expand Down
Loading