Skip to content

Add architecture endpoints #11

Add architecture endpoints

Add architecture endpoints #11

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
tests:
name: Tests PHP ${{ matrix.php }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
services:
phagrancy-app:
image: serversideup/php-8.0-fpm-nginx
options: --name phagrancy-app
ports:
- "8080:8080"
volumes:
- "${{ github_workspace }}:/var/www/html"

Check failure on line 17 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 17, Col: 13): Unrecognized named-value: 'github_workspace'. Located at position 1 within expression: github_workspace
env:
# serversideup/php
NGINX_WEBROOT: "/var/www/html/web"
# PHAGRANCY
PHAGRANCY_API_TOKEN: "token"
PHAGRANCY_STORAGE_PATH: "/tmp"
strategy:
fail-fast: false
matrix:
php: [7.4, 8.0]
experimental: [false]
include:
- php: 7.4
analysis: true
- php: 8.1
experimental: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Restart app container
uses: docker://docker
with:
args: docker restart phagrancy-app
- name: Packer Setup
uses: hashicorp/setup-packer@main
with:
version: "latest"
- name: Set up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: Install dependencies with Composer
uses: ramsey/composer-install@v1
- name: Tests
run: composer ci-test
- name: Code Climate Coverage Action Test
uses: MartinNuc/codeclimate-action@1
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TEST_REPORTER_ID }}
with:
coverageCommand: composer test-coverage