Skip to content

Commit

Permalink
Merge pull request #2 from pixelfederation/github_actions
Browse files Browse the repository at this point in the history
added license checking github action + composer update
  • Loading branch information
Martin Fris authored Aug 13, 2021
2 parents 6f4a1d8 + d62416f commit 8cb57cb
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 8cb57cb

Please sign in to comment.