From 913dd3338512e284303dbdfd1537602752ab5fb9 Mon Sep 17 00:00:00 2001 From: garydavisonos Date: Wed, 22 Jan 2025 21:09:50 +0000 Subject: [PATCH] Add Github workflow file --- .github/workflows/code.quality.yml | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/code.quality.yml diff --git a/.github/workflows/code.quality.yml b/.github/workflows/code.quality.yml new file mode 100644 index 0000000..635213f --- /dev/null +++ b/.github/workflows/code.quality.yml @@ -0,0 +1,34 @@ +name: "Code Quality 🏆" +on: + release: + types: [published] + pull_request: + types: [opened, synchronize, reopened] + push: + branches: + - master + - release/** + +jobs: + linting: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: "18.x" + + - name: Install packages + working-directory: . + run: npm ci --legacy-peer-deps + + - name: Build + working-directory: . + run: npm run build + + - name: ESLint + working-directory: . + run: npm run lint