Files
ponzi/.github/workflows/tests.yml
Alex 9725129d74 GitHub Workflows security hardening (#5992)
* build: harden update-changelog.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden tests.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>

* Update update-changelog.yml

* Update tests.yml

Co-authored-by: Dries Vints <dries@vints.io>
2022-09-20 08:19:54 -05:00

39 lines
758 B
YAML

name: Tests
on:
push:
branches:
- master
- '*.x'
pull_request:
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction
- name: Copy environment file
run: cp .env.example .env
- name: Generate app key
run: php artisan key:generate
- name: Execute tests
run: vendor/bin/phpunit