Skip to content

details

details #347

name: CI
on:
push:
branches: # empty list to only trigger on branches (i.e. not tags, ..)
env:
DOCKER_AMPERSAND_IMAGE: ampersandtarski/prototype-framework
jobs:
build:
name: Docker build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
# Don't use GITHUB_REF in docker tag, because it can be an invalid tag format (e.g. a branch that starts with #)
- name: Build
run: docker build . # --tag ${DOCKER_AMPERSAND_IMAGE}:${GITHUB_REF##*/}
static-analyzer:
name: PHP static analyzer
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
# extensions: # allows to install php extensions with PECL
tools: phan:v5.3 # allows to install other tools, see: https://github.com/shivammathur/setup-php
- name: Install dependencies
run: composer install --prefer-dist --no-dev --profile --optimize-autoloader --no-scripts --ignore-platform-reqs
- name: Phan version
run: phan --version
- name: Run Phan
run: phan -p --color --config-file ./.phan/config.php