mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
41 lines
886 B
YAML
41 lines
886 B
YAML
name: Run tests
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
php: [ 8.5 ]
|
|
|
|
name: PHP ${{ matrix.php }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
|
|
coverage: none
|
|
|
|
- name: Copy env file
|
|
run:
|
|
cp .env.test .env
|
|
|
|
- name: Run composer update
|
|
run: composer update --prefer-dist --no-interaction --no-progress --no-scripts
|
|
|
|
- name: Generate app key
|
|
run: |
|
|
APP_KEY=$(php -r "echo 'base64:' . base64_encode(random_bytes(32));")
|
|
sed -i "s/APP_KEY=.*/APP_KEY=$APP_KEY/" .env
|
|
|
|
|
|
- name: Run tests
|
|
run: vendor/bin/phpunit
|