Add 'ts' to codestyle workflow
[GitHub/WoltLab/WCF.git] / .github / workflows / codestyle.yml
1 name: Code Style
2
3 on:
4 push:
5 branches:
6 - "5.2"
7 - "5.3"
8 - master
9 pull_request:
10
11 jobs:
12 php:
13 name: PHP CodeSniffer
14 runs-on: ubuntu-latest
15 steps:
16 - uses: actions/checkout@v2
17 - uses: chekalsky/phpcs-action@e269c2f264f400adcda7c6b24c8550302350d495
18 ts:
19 name: TS Prettier
20 runs-on: ubuntu-latest
21 steps:
22 - uses: actions/checkout@v2
23 - run: npm install
24 - run: |
25 shopt -s globstar
26 npx pretter -w wcfsetup/install/files/ts/**/*.ts
27 - run: echo "::add-matcher::.github/diff.json"
28 - run: |
29 git diff --exit-code