|
28 | 28 | - name: Run code sniffer
|
29 | 29 | run: vendor/bin/phpcs
|
30 | 30 |
|
31 |
| - test: |
32 |
| - name: Run unit tests |
33 |
| - runs-on: ubuntu-latest |
34 |
| - |
35 |
| - steps: |
36 |
| - - name: Setup PHP |
37 |
| - uses: shivammathur/setup-php@v2 |
38 |
| - with: |
39 |
| - php-version: 5.4 |
40 |
| - extensions: json, tokenizer |
41 |
| - |
42 |
| - - name: Checkout code |
43 |
| - uses: actions/checkout@v2 |
44 |
| - |
45 |
| - - name: Install Composer dependencies |
46 |
| - uses: ramsey/composer-install@v1 |
47 |
| - |
48 |
| - - name: Run tests |
49 |
| - run: composer test |
50 |
| - |
51 | 31 | bundle:
|
52 | 32 | name: Bundle binary
|
53 | 33 | runs-on: ubuntu-latest
|
|
84 | 64 | name: parallel-lint-phar
|
85 | 65 | path: ./parallel-lint.phar
|
86 | 66 |
|
87 |
| - verify-bundle: |
88 |
| - name: Validate binary on PHP ${{ matrix.php }} |
| 67 | + test: |
| 68 | + name: Run tests on PHP ${{ matrix.php }} |
89 | 69 | runs-on: ubuntu-latest
|
90 | 70 | continue-on-error: ${{ matrix.experimental == true }}
|
91 | 71 | needs:
|
@@ -113,15 +93,27 @@ jobs:
|
113 | 93 | - name: Checkout code
|
114 | 94 | uses: actions/checkout@v2
|
115 | 95 |
|
116 |
| - - uses: actions/download-artifact@v2 |
117 |
| - with: |
118 |
| - name: parallel-lint-phar |
119 |
| - |
120 | 96 | - name: Setup PHP
|
121 | 97 | uses: shivammathur/setup-php@v2
|
122 | 98 | with:
|
123 | 99 | php-version: ${{ matrix.php }}
|
124 | 100 | coverage: none
|
125 | 101 |
|
126 |
| - - name: Run linter against codebase |
127 |
| - run: php ./parallel-lint.phar src/ |
| 102 | + - name: Install Composer dependencies |
| 103 | + uses: ramsey/composer-install@v1 |
| 104 | + |
| 105 | + - name: Run unit tests |
| 106 | + run: composer test |
| 107 | + |
| 108 | + - name: 'Integration test 1 - linting own code, no colors' |
| 109 | + run: ./parallel-lint --exclude vendor --exclude tests/examples --no-colors . |
| 110 | + |
| 111 | + - name: 'Integration test 2 - linting own code' |
| 112 | + run: ./parallel-lint --exclude vendor --exclude tests/examples . |
| 113 | + |
| 114 | + - uses: actions/download-artifact@v2 |
| 115 | + with: |
| 116 | + name: parallel-lint-phar |
| 117 | + |
| 118 | + - name: Run linter against codebase using the phar |
| 119 | + run: php ./parallel-lint.phar --exclude vendor --exclude tests/examples . |
0 commit comments