Skip to content

Commit

Permalink
clean up dependency version and update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Elhebert committed Mar 26, 2021
1 parent 3e7de74 commit e6dbd8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ jobs:
uses: actions/checkout@v1

- name: Cache dependencies
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v1
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extension: dom, curl, libxml, mbstring, pcntl, bcmath, intl, gd, exif, iconv
extensions: dom, curl, libxml, mbstring, pcntl, intl, exif, iconv
coverage: none

- name: Install dependencies
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Small Laravel 6+ package that'll generate the integrity hashes for your style an

For Laravel 5.5+ support, use the [v1 branch](https://github.com/Elhebert/laravel-sri/tree/v1).

For Laravel 8+ support, use the [master branch](https://github.com/Elhebert/laravel-sri).

## About Subresources Integrity

From [MDN](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity):
Expand All @@ -24,7 +26,7 @@ Troy Hunt wrote an article speaking on the subject, you can read it [here](https
composer require elhebert/laravel-sri
```

This package uses [auto-discovery](https://laravel.com/docs/5.5/packages#package-discovery), so you don't have to do anything. It works out of the box.
This package uses [auto-discovery](https://laravel.com/docs/6.x/packages#package-discovery), so you don't have to do anything. It works out of the box.

## Config

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
],
"require": {
"php": "^7.2.5 | ^7.3 | ^7.4 | ^8.0",
"illuminate/support": "^6.0 | ^7.0 | ^8.0"
"illuminate/support": "^6.0 | ^7.0"
},
"require-dev": {
"orchestra/testbench": "^4.0 | ^5.0 | ^6.0",
"orchestra/testbench": "^4.0 | ^5.0",
"phpunit/phpunit": "^8.0 | ^9.0 | ^9.3"
},
"autoload": {
Expand Down

0 comments on commit e6dbd8c

Please sign in to comment.