-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (32 loc) · 1.05 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
name: Continuous Integration
on: [push, pull_request]
env:
PACKAGE: PHPUnitKit
jobs:
tests:
strategy:
fail-fast: false
matrix:
st-version: [3, 4]
os: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- 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 }}
codecov-upload: ${{ matrix.os == 'ubuntu-latest' && matrix.st-version == 3 }}
- name: Syntax Tests
uses: SublimeText/UnitTesting/actions/run-syntax-tests@v1
- name: Coding guidelines check
if: ${{ matrix.os == 'ubuntu-latest' && matrix.st-version == 4 }}
run: |
pip3 install flake8 flake8-docstrings pydocstyle
flake8 -v