Skip to content

Commit

Permalink
chore: Sync changes from the template (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: oprypkhantc <54406427+oprypkhantc@users.noreply.github.com>
  • Loading branch information
package-sync[bot] and oprypkhantc committed May 14, 2024
1 parent 2e0bcf1 commit 96643ef
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 8 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

0 comments on commit 96643ef

Please sign in to comment.