Allow actions from report if not logged in #48
Workflow file for this run
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: CI | |
on: [pull_request] | |
jobs: | |
phpstan: | |
runs-on: ubuntu-24.04 | |
defaults: | |
run: | |
working-directory: ./app | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
- run: composer install --no-scripts --no-cache | |
- name: PHPStan Static Analysis | |
run: ./vendor/bin/phpstan -v | |
testmail: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup env | |
run: | | |
cp .env.example .env | |
sed -i "s|#COMPOSE_FILE=.*|COMPOSE_FILE=docker-compose.yml:compose.dev.yml|g" .env | |
sed -i "s|APP_ENV=.*|APP_ENV=dev|g" .env | |
sed -i "s|SF_APP_SECRET=.*|SF_APP_SECRET=`openssl rand -hex 16`|" .env | |
sed -i "s|SF_TOKEN_ENCRYPTION_IV=.*|SF_TOKEN_ENCRYPTION_IV=`openssl rand -hex 8`|" .env | |
sed -i "s|SF_TOKEN_ENCRYPTION_SALT=.*|SF_TOKEN_ENCRYPTION_SALT=`openssl rand -base64 32`|" .env | |
sed -i "s|example.com|agentj.local|g" .env | |
sed -i "s|#UID=.*|UID=`id -u`|g" .env | |
sed -i "s|#GID=.*|GID=`id -g`|g" .env | |
sed -i "s|#MAILPIT_WEB_PORT=.*|MAILPIT_WEB_PORT=8025|g" .env | |
- name: Run docker-compose | |
uses: hoverkraft-tech/[email protected] | |
env: | |
APP_ENV: dev | |
DOMAIN: agentj.local | |
with: | |
compose-file: | | |
docker-compose.yml | |
compose.dev.yml | |
up-flags: --build | |
down-flags: --volumes | |
- name: Run tests | |
run: | | |
docker compose exec -u www-data app ./docker/tests/testmail.sh | |
exit $(cat `find tests/results -name '*.result'` | grep -c failed) |