Skip to content

Commit

Permalink
Merge pull request #18 from rahi69/master
Browse files Browse the repository at this point in the history
Add Check Imports
  • Loading branch information
imanghafoori1 authored Dec 30, 2023
2 parents bf22290 + 0203c0b commit 1b873c6
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/check_import.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check Imports

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
check_imports:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Check Imports
run: ./vendor/bin/check_imports
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<a href="https://scrutinizer-ci.com/g/imanghafoori1/laravel-anypass"><img src="https://img.shields.io/scrutinizer/g/imanghafoori1/laravel-anypass.svg?style=round-square" alt="Quality Score"></img></a>
[![Build Status](https://scrutinizer-ci.com/g/imanghafoori1/laravel-anypass/badges/build.png?b=master)](https://scrutinizer-ci.com/g/imanghafoori1/laravel-anypass/build-status/master)
[![License](https://poser.pugx.org/imanghafoori/laravel-anypass/license)](https://packagist.org/packages/imanghafoori/laravel-anypass)
[![Check Imports](https://github.com/imanghafoori1/laravel-anypass/actions/workflows/check_import.yml/badge.svg?branch=master)](https://github.com/imanghafoori1/laravel-anypass/actions/workflows/check_import.yml)
[![StyleCI](https://github.styleci.io/repos/132257244/shield?branch=master)](https://github.styleci.io/repos/132257244)

### Built with :heart: for every "lazy" laravel developer ;)
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"require-dev": {
"orchestra/testbench": "^4.0|^5.0|^6.0",
"imanghafoori/php-imports-analyzer": "^1.0.6",
"laravel/legacy-factories": "^1.1"
},
"autoload-dev": {
Expand Down

0 comments on commit 1b873c6

Please sign in to comment.