forked from tymondesigns/jwt-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request tymondesigns#70 from PHP-Open-Source-Saver/feature…
…/fix-gh-actions ci(GitHub Actions): update configuration
- Loading branch information
Showing
2 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: PHP-CS-Fixer | ||
name: Coding Standards | ||
|
||
on: | ||
push: | ||
|
@@ -22,6 +22,19 @@ jobs: | |
php-version: 7.4 | ||
coverage: none | ||
|
||
- name: Determine composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=directory::$(composer config cache-dir)" | ||
|
||
- name: Cache dependencies installed with composer | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ steps.composer-cache.outputs.directory }} | ||
key: composer-${{ runner.os }}-${{ hashFiles('composer.json') }} | ||
restore-keys: | | ||
composer-${{ runner.os }}- | ||
composer- | ||
- name: Install dependencies | ||
run: composer update --prefer-dist --no-progress --no-plugins --no-scripts | ||
|
||
|
@@ -30,4 +43,4 @@ jobs: | |
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: composer php-cs-fixer | ||
commit_message: 'style: php-cs-fixer' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters