Skip to content

Commit

Permalink
chore: Sync changes from the template (#33)
Browse files Browse the repository at this point in the history
Co-authored-by: oprypkhantc <[email protected]>
  • Loading branch information
package-sync[bot] and oprypkhantc authored May 14, 2024
1 parent 5a66e59 commit 5f0df03
Show file tree
Hide file tree
Showing 3 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
25 changes: 22 additions & 3 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
uses: actionsx/prettier@v2
- name: Reformat using Prettier
uses: actionsx/prettier@v3
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
19 changes: 14 additions & 5 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 @@ -21,7 +30,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: |
Expand All @@ -43,7 +52,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 @@ -61,7 +70,7 @@ jobs:
uses: actions/checkout@v3

- name: Run prettier
uses: actionsx/prettier@v2
uses: actionsx/prettier@v3
with:
args: --check .

Expand All @@ -83,7 +92,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: |
Expand Down

0 comments on commit 5f0df03

Please sign in to comment.