From 33f09cde1ee0299a870df014005d0a4b569dfdf9 Mon Sep 17 00:00:00 2001 From: cbh778899 Date: Tue, 10 Sep 2024 17:41:54 +1000 Subject: [PATCH] add lint workflow Signed-off-by: cbh778899 --- .github/workflows/lint.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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..5c2ebda --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,38 @@ +name: Lint code + +on: + # Runs on pushes targeting the default branch + pull_request: + branches: ['main'] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} + cancel-in-progress: true + +jobs: + code_quality: + name: 'Code Quality📦' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 9 + run_install: false + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Lint + run: pnpm run lint \ No newline at end of file