New. Tests. GitHub action auto-testing added. #1
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: Tests | |
on: # event list | |
push: # on push to each of these branches | |
branches: | |
- dev | |
- fix | |
- master | |
pull_request: | |
branches: | |
- dev | |
- master | |
env: # environment variables (available in any part of the action) | |
PHP_VERSION: 7.4 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ env.PHP_VERSION }} | |
- name: Code Checkout | |
uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: composer i | |
- name: Running tests | |
run: composer test |