Skip to content

Commit

Permalink
Merge pull request #1912 from TomasVotruba/github-actions-ecs
Browse files Browse the repository at this point in the history
[CI] Move ECS from Travis to Github Actions
  • Loading branch information
I-Valchev authored Sep 28, 2020
2 parents 922d708 + f8eb70b commit 979c308
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
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

0 comments on commit 979c308

Please sign in to comment.