feat: add unit test action (#2)

This commit is contained in:
Damien Retzinger
2022-06-25 16:39:58 -04:00
committed by GitHub
parent 4bc0854cfc
commit 72b1f25310
4 changed files with 112 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
name: Unit Test
on:
push:
branches:
- main
paths-ignore:
- "docs/**"
- README.md
pull_request:
branches:
- main
paths-ignore:
- "docs/**"
- README.md
jobs:
install-test:
strategy:
matrix:
php_version:
- 7.4
- 8.1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./unit-test
with:
source_folder: _test/demo-package
php_version: ${{ matrix.php_version }}
composer_auth: ${{ secrets.COMPOSER_AUTH }}