fix: edge-case switchable issue #312
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |