Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Code Analysis

on:
pull_request: null
push:
branches:
- master

jobs:
code_analysis:
strategy:
fail-fast: false
matrix:
actions:
-
name: Coding Standard
# tip: add "--ansi" to commands in CI to make them full of colors
run: vendor/bin/ecs check src --ansi

name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v1
with:
# test the lowest version, to make sure checks pass on it
php-version: 7.2
coverage: none

- run: composer install --no-progress --ansi

- run: ${{ matrix.actions.run }}
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ before_script:

script:
# this checks that the source code follows the Bolt Code Syntax rules
- php -d memory_limit=2G vendor/bin/ecs check src
- ./vendor/bin/phpstan analyse -c phpstan.neon src
# run EsLint on Javascript files
- npm run lint
Expand Down