From 3b135fd1a64af5468f1e7acd529dac94755c7de9 Mon Sep 17 00:00:00 2001 From: Gauvino <68083474+Gauvino@users.noreply.github.com> Date: Sat, 14 Oct 2023 20:20:59 +0200 Subject: [PATCH] Create quality-check.yml --- .github/workflows/quality-check.yml | 117 ++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 .github/workflows/quality-check.yml diff --git a/.github/workflows/quality-check.yml b/.github/workflows/quality-check.yml new file mode 100644 index 00000000..4009e3f9 --- /dev/null +++ b/.github/workflows/quality-check.yml @@ -0,0 +1,117 @@ +name: Quality checks + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + run-escheck: + name: Run es-check + runs-on: ubuntu-latest + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + + - name: Setup node environment + uses: actions/setup-node@v3 + with: + node-version: 20 + check-latest: true + cache: npm + + - name: Install Node.js dependencies + run: npm ci --no-audit + + - name: Run build + run: npm run build + + - name: Run es-check + run: npm run escheck + + run-eslint: + name: Run eslint + runs-on: ubuntu-latest + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + + - name: Setup node environment + uses: actions/setup-node@v3 + with: + node-version: 20 + check-latest: true + cache: npm + + - name: Install Node.js dependencies + run: npm ci --no-audit + + - name: Run eslint + run: npm run lint + + run-prettier: + name: Run Prettier + runs-on: ubuntu-latest + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + + - name: Setup node environment + uses: actions/setup-node@v3 + with: + node-version: 20 + check-latest: true + cache: npm + + - name: Install Node.js dependencies + run: npm ci --no-audit + + - name: Run Prettier + run: npm run prettier:check + + run-stylelint-css: + name: Run stylelint (css) + runs-on: ubuntu-latest + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + + - name: Setup node environment + uses: actions/setup-node@v3 + with: + node-version: 20 + check-latest: true + cache: npm + + - name: Set up stylelint matcher + uses: xt0rted/stylelint-problem-matcher@v1 + + - name: Install Node.js dependencies + run: npm ci --no-audit + + - name: Run stylelint + run: npm run stylelint:css + + run-tsc: + name: Run TypeScript build check + runs-on: ubuntu-latest + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + - name: Setup node environment + uses: actions/setup-node@v3 + with: + node-version: 20 + check-latest: true + cache: npm + + - name: Install Node.js dependencies + run: npm ci --no-audit + + - name: Run tsc + run: npm run build:check