-
Notifications
You must be signed in to change notification settings - Fork 12
58 lines (48 loc) · 1.57 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Continuous Integration
on: [push, pull_request]
env:
PACKAGE: PHPUnitKit
SUBLIME_PHPUNIT_DEBUG: 1
SUBLIME_PHPUNIT_END_TO_END_TESTS: 1
jobs:
tests:
strategy:
fail-fast: false
matrix:
st-version: [3, 4]
os: ["ubuntu-latest", "windows-latest"]
php-versions: ['8.2']
coverage: ['xdebug']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: ${{ matrix.coverage }}
tools: composer
- name: Install Composer deps
run: |
cd tests/fixtures/project
composer install --no-progress --optimize-autoloader
- name: Setup
uses: SublimeText/UnitTesting/actions/setup@v1
with:
sublime-text-version: ${{ matrix.st-version }}
package-name: ${{ env.PACKAGE }}
- name: Tests
uses: SublimeText/UnitTesting/actions/run-tests@v1
with:
coverage: ${{ matrix.os == 'ubuntu-latest' && matrix.st-version == 3 }}
- name: Syntax Tests
uses: SublimeText/UnitTesting/actions/run-syntax-tests@v1
- name: Upload Codecov
if: ${{ matrix.os == 'ubuntu-latest' && matrix.st-version == 3 }}
uses: codecov/codecov-action@v3
- name: Coding guidelines check
if: ${{ matrix.os == 'ubuntu-latest' && matrix.st-version == 4 }}
run: |
pip3 install flake8 flake8-docstrings pydocstyle
flake8 -v