Skip to content

Commit

Permalink
Add Github Actions workflow definition
Browse files Browse the repository at this point in the history
  • Loading branch information
into-the-v0id committed Dec 7, 2023
1 parent f06e585 commit d43a1ee
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.editorconfig export-ignore
/tests export-ignore
/phpcs.xml export-ignore
/phpunit.xml export-ignore
/psalm.xml export-ignore
/.github export-ignore
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test

on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize

jobs:
test:
name: Test
strategy:
matrix:
php: [ "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2" ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
extensions: mbstring, pcre
tools: composer:v2
coverage: none

- name: Install dependencies
run: composer install --no-progress --no-interaction --no-ansi

- name: Test
run: composer check

0 comments on commit d43a1ee

Please sign in to comment.