Skip to content

Commit

Permalink
Upgrade CI action to use composer cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin de Keijzer committed Feb 17, 2021
1 parent 69617bc commit 5388612
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/build-source.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Static analysis of live-broadcast-bundle

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Validate composer.json and composer.lock
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run PHPCS
run: ./vendor/bin/phpcs --standard=./vendor/escapestudios/symfony2-coding-standard/Symfony/ Broadcaster/ Command/ DependencyInjection/ Entity/ EventListener/ Exception/ Resources/ Service/ Tests/ LiveBroadcastBundle.php

- name: Run PHPUnit
run: ./vendor/bin/phpunit --coverage-text --colors

0 comments on commit 5388612

Please sign in to comment.