Procházet zdrojové kódy

Style cleanup adding newlines

Seems to be the unofficial GitHub Actions YAML style and arguably makes things a lot more readable if you have a lot of steps…
rugk před 4 roky
rodič
revize
e2ae0da4e1
1 změnil soubory, kde provedl 14 přidání a 0 odebrání
  1. 14 0
      .github/workflows/tests.yml

+ 14 - 0
.github/workflows/tests.yml

@@ -2,6 +2,7 @@ name: Tests
 on: [push]
 
 jobs:
+
   Composer:
     runs-on: ubuntu-latest
     steps:
@@ -11,6 +12,7 @@ jobs:
       run: composer validate
     - name: Install dependencies
       run: composer install --prefer-dist --no-dev
+      
   PHPunit:
     runs-on: ubuntu-latest
     strategy:
@@ -19,7 +21,10 @@ jobs:
     name: PHP ${{ matrix.php-versions }} unit tests on ${{ matrix.operating-system }}
     env:
       extensions: gd, sqlite3
+      
     steps:
+    
+    # let's get started!
     - name: Checkout
       uses: actions/checkout@v2
       
@@ -48,9 +53,11 @@ jobs:
     # composer cache
     - name: Remove composer lock
       run: rm composer.lock
+      
     - name: Get composer cache directory
       id: composer-cache
       run: echo "::set-output name=dir::$(composer config cache-files-dir)"
+    
     # http://man7.org/linux/man-pages/man1/date.1.html
     # https://github.com/actions/cache#creating-a-cache-key
     - name: Get Date
@@ -58,6 +65,7 @@ jobs:
       run: |
         echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
       shell: bash
+    
     - name: Cache dependencies
       uses: actions/cache@v2
       with:
@@ -75,20 +83,26 @@ jobs:
     - name: Run unit tests
       run: ../vendor/bin/phpunit --no-coverage
       working-directory: tst
+      
   Mocha:
     runs-on: ubuntu-latest
     steps:
+    
     - name: Checkout
       uses: actions/checkout@v2
+      
     - name: Setup Node
       uses: actions/setup-node@v1
       with:
         node-version: '12'
+        
     - name: Setup Mocha
       run: npm install -g mocha
+      
     - name: Setup Node modules
       run: npm install
       working-directory: js
+      
     - name: Run unit tests
       run: mocha
       working-directory: js