Skip to content

Commit aa0bb4b

Browse files
committed
Configure github action
1 parent 4cfed1e commit aa0bb4b

3 files changed

Lines changed: 20 additions & 8 deletions

File tree

.gitattributes

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ vendor-bin/**/composer.lock linguist-generated=true
2121
composer.lock linguist-generated=true
2222

2323
# Exclude files from exporting
24-
.vscode/* export-ignore
25-
tests/* export-ignore
26-
var/* export-ignore
24+
.github/ export-ignore
25+
.vscode/ export-ignore
26+
tests/ export-ignore
27+
var/ export-ignore
2728
vendor-bin/**/composer.lock export-ignore
2829
.editorconfig export-ignore
2930
.gitattributes export-ignore

.github/workflows/php.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,19 @@ jobs:
1414

1515
runs-on: ubuntu-latest
1616

17+
strategy:
18+
matrix:
19+
php: [8.1, 8.2, 8.3, 8.4]
20+
name: PHP ${{ matrix.php }}
21+
1722
steps:
1823
- uses: actions/checkout@v4
1924

25+
- name: Set up PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
2030
- name: Validate composer.json and composer.lock
2131
run: composer validate --strict
2232

@@ -32,8 +42,6 @@ jobs:
3242
- name: Install dependencies
3343
run: composer install --prefer-dist --no-progress
3444

35-
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
36-
# Docs: https://getcomposer.org/doc/articles/scripts.md
37-
38-
# - name: Run test suite
39-
# run: composer run-script test
45+
# Run tests
46+
- name: Run test suite
47+
run: composer run-script test

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
// EditorConfig for VS Code
1010
"editorconfig.editorconfig",
1111

12+
// GitHub Actions
13+
"github.vscode-github-actions",
14+
1215
// PHPUnit Test Explorer
1316
"recca0120.vscode-phpunit"
1417
]

0 commit comments

Comments
 (0)