From 69c02f657f7905e392c3e1f8634e299e19189572 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 18 Jan 2021 14:14:55 +0100 Subject: [PATCH] Add Prettier to codestyle workflow --- .github/workflows/codestyle.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 5ae031c..0bc896d 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -20,3 +20,18 @@ jobs: uses: docker://oskarstark/php-cs-fixer-ga with: args: --dry-run --diff-format udiff + ts: + name: TS Prettier + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: npm install + - name: Run prettier + run: | + shopt -s globstar + npx prettier -w ts/**/*.ts + - run: echo "::add-matcher::.github/diff.json" + - name: Show diff + run: | + git checkout -- package-lock.json + git diff --exit-code -- 2.20.1