Skip to content

Whitelist git dir

Whitelist git dir #63

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
code_style:
name: Test code style
runs-on: ubuntu-latest
strategy:
matrix:
version: ['7.3', '7.4', '8.0', '8.1']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.version }}
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Dependencies
run: composer install
- name: Test code style
run: composer fixer -- --dry-run
env:
PHP_CS_FIXER_IGNORE_ENV: 1
static_analysis:
name: Static analysis
runs-on: ubuntu-latest
strategy:
matrix:
version: ['7.3', '7.4', '8.0', '8.1']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.version }}
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Dependencies
run: composer install
- name: Run static analysis
run: composer phpstan
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
version: ['7.3', '7.4', '8.0', '8.1']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.version }}
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Dependencies
run: composer install
- name: Run tests
run: composer phpunit
tests-32bit:
name: Test 32 bit php
runs-on: ubuntu-latest
container: shivammathur/node:latest-i386
steps:
- name: Whitelist GIT dir
run: git config --global --add safe.directory $(pwd)
- name: Install PHP
run: |
spc -U
spc --php-version "7.4" --coverage "xdebug"
- name: Checkout Code
run: |
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
[ -n "$GITHUB_HEAD_REF" ] && git checkout $GITHUB_HEAD_REF || git checkout $GITHUB_SHA
- name: Install Dependencies
run: composer install
- name: Tests
run: composer phpunit