Skip to content

Commit

Permalink
Test split actions (barryvdh#1091)
Browse files Browse the repository at this point in the history
* Split unit/cs actions

* Create fix-cs.yml

* Update fix-cs.yml
  • Loading branch information
barryvdh authored Aug 17, 2020
1 parent f07317f commit 5fd2937
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 34 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/fix-cs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Fix Codestyle

on: [push, pull_request]

jobs:
fix-style:
name: Fix Code Style
timeout-minutes: 15
runs-on: ubuntu-latest
env:
COMPOSER_NO_INTERACTION: 1

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none
tools: composer:v2

- name: Install dependencies
run: |
composer update --prefer-dist --no-suggest --no-progress
- run: composer fix-style
continue-on-error: true

# Revert modifications so they don't get commited 💥
- run: git checkout -- composer.json

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: composer fix-style
commit_author: laravel-debugbar <laravel-debugbar@users.noreply.github.com>
35 changes: 1 addition & 34 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: Unit Tests

on: [push, pull_request]

Expand Down Expand Up @@ -38,36 +38,3 @@ jobs:
- name: Execute Unit Tests
run: composer test

fix-style:
name: Fix Code Style
timeout-minutes: 15
runs-on: ubuntu-latest
env:
COMPOSER_NO_INTERACTION: 1

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none
tools: composer:v2

- name: Install dependencies
run: |
composer update --prefer-dist --no-suggest --no-progress
- run: composer fix-style
continue-on-error: true

# Revert modifications so they don't get commited 💥
- run: git checkout -- composer.json

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: composer fix-style
commit_author: laravel-debugbar <laravel-debugbar@users.noreply.github.com>

0 comments on commit 5fd2937

Please sign in to comment.