From ecd9fd9f3fed9d63f73ddb45671edf8e00b7a10b Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Mon, 12 Aug 2024 10:14:12 +0200 Subject: [PATCH] ci: add lint action --- .github/workflows/lint.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..fa16b95 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,33 @@ +name: Linters + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +permissions: + contents: read + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: yarn + + - name: Install + run: yarn install + + - name: Build + run: yarn build + + - name: Prettier + run: yarn run format-check