Skip to content

Commit

Permalink
chore: Sync changes from the template
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypkhantc authored and package-sync[bot] committed May 14, 2024
1 parent 2e0bcf1 commit 42db4eb
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ on:
jobs:
release:
name: Release
runs-on: packages
container: node:22
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
Expand Down
23 changes: 21 additions & 2 deletions .github/workflows/template-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,30 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Reformat
- name: Reformat using Prettier
uses: actionsx/prettier@v2
with:
args: --write .

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: dom, libxml, mbstring
tools: composer:v2
coverage: none

- name: Composer cache
uses: actions/cache@v3
with:
path: vendor
key: composer-${{ hashFiles('composer.json') }}

- name: Reformat using php-cs-fixer
run: |
composer install
composer cs-fix
- name: Generate token to read from source repo
id: generate_token
uses: tibdex/github-app-token@v1
Expand All @@ -52,7 +71,7 @@ jobs:
workflow-keepalive:
name: Workflow keepalive
runs-on: packages
container: node:22
container: maniator/gh:v2.48.0
if: github.event_name == 'schedule'

permissions:
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: Tests

on: [pull_request]
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- next
- next-major
- beta
- alpha

jobs:
phpunit:
Expand All @@ -20,7 +29,7 @@ jobs:
uses: actions/cache@v3
with:
path: vendor
key: composer-${{ runner.os }}-${{ hashFiles('composer.json') }}
key: composer-${{ hashFiles('composer.json') }}

- name: Install dependencies
run: composer install --prefer-dist --no-progress
Expand All @@ -40,7 +49,7 @@ jobs:
uses: actions/cache@v3
with:
path: vendor
key: composer-${{ runner.os }}-${{ hashFiles('composer.json') }}
key: composer-${{ hashFiles('composer.json') }}

- name: Install dependencies
run: composer install --prefer-dist --no-progress
Expand Down Expand Up @@ -79,7 +88,7 @@ jobs:
uses: actions/cache@v3
with:
path: vendor
key: composer-${{ runner.os }}-${{ hashFiles('composer.json') }}
key: composer-${{ hashFiles('composer.json') }}

- name: Install dependencies
run: composer install --prefer-dist --no-progress
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"require-dev": {
"pestphp/pest": "^2.8",
"mockery/mockery": "^1.4",
"php-cs-fixer/shim": "~3.19.2",
"tenantcloud/php-cs-fixer-rule-sets": "~3.0.0",
"php-cs-fixer/shim": "^3.54",
"tenantcloud/php-cs-fixer-rule-sets": "~3.3.0",
"phpstan/phpstan": "~1.10.21",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-webmozart-assert": "^1.2",
Expand Down

0 comments on commit 42db4eb

Please sign in to comment.