Skip to content

Commit

Permalink
added license checking github action + composer update
Browse files Browse the repository at this point in the history
  • Loading branch information
mfris committed Aug 13, 2021
1 parent 6f4a1d8 commit d62416f
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 20 deletions.
33 changes: 33 additions & 0 deletions .github/workflows /php-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: PHP Continuous Integration

on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
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 vendor licenses
run: composer run-script lic-check
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@
},
"config": {
"sort-packages": true
},
"scripts": {
"lic-check": "license-checker check"
}
}
39 changes: 19 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d62416f

Please sign in to comment.