diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-09 18:21:34 +0300 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-09 18:25:12 +0300 |
commit | 73823f4507c7e139ad45bef90b31a0d68e7aea45 (patch) | |
tree | 9067d38bf168ee672bc9229679df52272a0635b4 /.github | |
parent | 01418849f36b15722fb018a5101044de3d3cfe93 (diff) |
Add php cs
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 229fb498..8d74b98f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,6 +28,30 @@ jobs: - name: Lint run: composer run lint + php-cs-fixer: + runs-on: ubuntu-latest + + strategy: + matrix: + php-versions: ['7.4'] + + name: cs php${{ matrix.php-versions }} + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Set up php + uses: shivammathur/setup-php@master + with: + php-version: ${{ matrix.php-versions }} + coverage: none + + - name: Install dependencies + run: composer i + + - name: Run coding standards check + run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 ) + node: runs-on: ubuntu-latest @@ -35,7 +59,7 @@ jobs: matrix: node-versions: [12.x] - name: node${{ matrix.node-versions }} + name: eslint node${{ matrix.node-versions }} steps: - uses: actions/checkout@v2 @@ -49,3 +73,25 @@ jobs: - name: Lint run: npm run lint + + stylelint: + runs-on: ubuntu-latest + + strategy: + matrix: + node-versions: [12.x] + + name: stylelint node${{ matrix.node-versions }} + steps: + - uses: actions/checkout@v2 + + - name: Set up node ${{ matrix.node-versions }} + uses: actions/setup-node@v1 + with: + node-versions: ${{ matrix.node-versions }} + + - name: Install dependencies + run: npm ci + + - name: Lint + run: npm run stylelint |