Skip to content

Commit 8eba16b

Browse files
Merge pull request #92 from imanghafoori1/master
Add imports checker to github flows
2 parents 6cc8abb + 5a58be0 commit 8eba16b

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

.github/workflows/check_imports.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Check Imports
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
check_imports:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Cache Composer packages
21+
id: composer-cache
22+
uses: actions/cache@v3
23+
with:
24+
path: vendor
25+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-php-
28+
29+
- name: Install dependencies
30+
run: composer install --prefer-dist --no-progress && composer require imanghafoori/php-imports-analyzer --dev
31+
32+
- name: Check Imports
33+
run: ./vendor/bin/check_imports

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
![Downloads](https://img.shields.io/packagist/dt/akaunting/laravel-money)
44
![Tests](https://img.shields.io/github/actions/workflow/status/akaunting/laravel-money/tests.yml?label=tests)
55
[![StyleCI](https://github.styleci.io/repos/112121508/shield?style=flat&branch=master)](https://styleci.io/repos/112121508)
6+
[![Check Imports](https://github.com/akaunting/laravel-money/actions/workflows/check_imports.yml/badge.svg?branch=master)](https://github.com/akaunting/laravel-money/actions/workflows/check_imports.yml)
67
[![License](https://img.shields.io/github/license/akaunting/laravel-money)](LICENSE.md)
78

8-
This package intends to provide tools for formatting and conversion monetary values in an easy, yet powerful way for Laravel projects.
9+
This package intends to provide tools for formatting and conversion of monetary values in an easy, yet powerful way for Laravel projects.
910

1011
### Why not use the `moneyphp` package?
1112

tests/Rules/CurrencyRuleTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Akaunting\Money\Currency;
66
use Akaunting\Money\Rules\CurrencyRule;
77
use Akaunting\Money\Tests\TestCase;
8-
use Illuminate\Support\Facades\Lang;
98

109
class CurrencyRuleTest extends TestCase
1110
{

0 commit comments

Comments
 (0)