fix: improve auto env loader (#6) #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHPUnit Test | |
on: | |
push: | |
pull_request: | |
concurrency: | |
group: test | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v3 | |
- name: Create Environments | |
run: echo "${{ secrets.TEST_ENV_VARIABLES }}" > .env | |
- name: Install and update Composer packages | |
run: composer run-script install-dependencies | |
- name: Run test suite | |
run: composer run-script phpunit-test |