From 6a4346028e4d1f1bd8f4b32bf7e520595e8304a8 Mon Sep 17 00:00:00 2001 From: Core Date: Sun, 11 Sep 2022 00:01:56 +0100 Subject: [PATCH] pr chores --- .github/workflows/pr-choes.yml | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/pr-choes.yml diff --git a/.github/workflows/pr-choes.yml b/.github/workflows/pr-choes.yml new file mode 100644 index 00000000..0abc6dd4 --- /dev/null +++ b/.github/workflows/pr-choes.yml @@ -0,0 +1,38 @@ +name: PR Chores + +on: [pull_request] + +jobs: + linter-check: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + node: [14] + + steps: + - name: Checkout 🛎 + uses: actions/checkout@v2 + + - name: Setup pnpm 🚧F + uses: pnpm/action-setup@v2.2.2 + with: + version: 7 + + - name: Setup node env 🏗 + uses: actions/setup-node@v3.4.1 + with: + node-version: ${{ matrix.node }} + check-latest: true + cache: 'pnpm' + + - name: Install dependencies 👨🏻‍💻 + run: pnpm install + + - name: Run linter 👀 + uses: wearerequired/lint-action@v2 + with: + eslint: true + prettier: true + prettier_args: "'**/*.{js,json,ts,css,vue,less}'"