Skip to content

Commit 35792a8

Browse files
committed
badges
1 parent d377d8a commit 35792a8

3 files changed

Lines changed: 45 additions & 1 deletion

File tree

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.2'
19+
php-version: '8.4'
2020
coverage: none
2121

2222
- name: Install composer dependencies

.github/workflows/rector.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Rector
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
7+
- 'rector.php'
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
rector:
15+
name: rector
16+
runs-on: ubuntu-latest
17+
if: github.event.pull_request.draft == false
18+
timeout-minutes: 5
19+
steps:
20+
- uses: actions/checkout@v6
21+
22+
- name: Setup PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: '8.4'
26+
coverage: none
27+
28+
- name: Install composer dependencies
29+
uses: ramsey/composer-install@v3
30+
with:
31+
composer-options: '--optimize-autoloader --classmap-authoritative'
32+
33+
- name: Cache Rector
34+
uses: actions/cache@v5
35+
with:
36+
path: ./storage/framework/rector
37+
key: ${{ runner.os }}-rector-${{ hashFiles('**/composer.lock') }}
38+
restore-keys: ${{ runner.os }}-rector-
39+
40+
- name: Run Rector
41+
run: ./vendor/bin/rector process --dry-run --ansi --no-progress-bar

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/webard/filament-translatable.svg?style=flat-square)](https://packagist.org/packages/webard/filament-translatable)
44
[![Total Downloads](https://img.shields.io/packagist/dt/webard/filament-translatable.svg?style=flat-square)](https://packagist.org/packages/webard/filament-translatable)
5+
![Tests](https://github.com/webard/filament-translatable/actions/workflows/run-tests.yml/badge.svg)
6+
![PHPStan](https://github.com/webard/filament-translatable/actions/workflows/phpstan.yml/badge.svg)
7+
![Rector](https://github.com/webard/filament-translatable/actions/workflows/rector.yml/badge.svg)
58

69
Filament Translatable is a set of tools that help manage translations.
710

0 commit comments

Comments
 (0)