Add Gitea Actions test workflow
Tests / tests (push) Failing after 25s

This commit is contained in:
sandros committed 2026-09-26 22:55:17 +02:00
1 parent 36dbd2aaf0
commit a993080fe6
1 file changed
+36
+36
View File
@@ -0,0 +1,36 @@
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-latest
container:
image: php:7.4-cli
steps:
- name: Install system dependencies
run: |
apt-get update -qq
apt-get install -y -qq git unzip curl
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- uses: actions/checkout@v3
- name: Install Composer dependencies
run: composer install --no-interaction --prefer-dist
- name: Run PHPUnit
run: vendor/bin/phpunit
if: always()
- name: Run Psalm
run: |
curl -sSL https://github.com/vimeo/psalm/releases/download/4.30.0/psalm.phar -o /usr/local/bin/psalm
chmod +x /usr/local/bin/psalm
psalm --no-cache
if: always()