Skip to content

Commit

Permalink
Add Github Actions and dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
Solventt committed Mar 14, 2022
1 parent 44a32ae commit f0681b1
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: monthly
versioning-strategy: increase
39 changes: 39 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests

# This event setting prevents Github Actions from running twice when a pull request occurs
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.4, 8.0, 8.1]

steps:

- name: Clone a repository
uses: actions/[email protected]

- name: Install PHP ${{ matrix.php }}
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}

- name: Install dependencies with Composer
uses: ramsey/[email protected]

- name: Run module tests
run : vendor/bin/phpunit

- name: Run code style checking
run : vendor/bin/phpcs

- name: Run a static analysis tool
run : vendor/bin/psalm
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
.idea
nbproject

docker/
Dockerfile
vendor/
composer.lock
docker-compose.yml
Makefile

php-cs.cache
Expand Down

0 comments on commit f0681b1

Please sign in to comment.