Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/pullRequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Pull Request Pipeline

on:
pull_request:
branches:
- main

jobs:
pull_request_pipeline:
name: Pull Request Pipeline
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
id: cache-db
with:
path: ~/.symfony/cache
key: db

- uses: symfonycorp/security-checker-action@v4

- uses: php-actions/composer@v6

- name: finding vulnerabilities and weaknesses
run: ./vendor/bin/phpcs --extensions=php,inc,lib,module,info --standard=./vendor/pheromone/phpcs-security-audit/example_base_ruleset.xml ./src/
continue-on-error: true

- name: Build package
run: |
sudo chown -R $USER:$USER .
composer install --prefer-dist --no-progress
composer dump-autoload --optimize
composer validate

- name: Check code style
run: composer check-style
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/vendor/
.phpunit.result.cache
.idea/
.vscode/
*.log
.DS_Store
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"laravel/framework": "^9.0|^10.0|^11.0",
"notificationapi/notificationapi-php-server-sdk": "master"
},
"require-dev": {
"laravel/pint": "^1.13"
},
"extra": {
"laravel": {
"providers": [
Expand All @@ -26,5 +29,9 @@
"psr-4" : {
"NotificationAPI\\" : "src/"
}
},
"scripts": {
"check-style": "pint --test",
"fix-style": "pint"
}
}
Loading
Loading