Merge branch 'master' into typescript-tree
[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 - name: Run prettier
25 run: |
26 shopt -s globstar
27 npx prettier -w ts/**/*.ts
28 - run: echo "::add-matcher::.github/diff.json"
29 - name: Show diff
30 run: |
31 git checkout -- package-lock.json
32 git diff --exit-code