From a5a1ee62b4e08647f0830a3590933588e5b6393a Mon Sep 17 00:00:00 2001 From: Jonas Geiler Date: Sun, 21 Apr 2024 00:49:33 +0200 Subject: [PATCH] ci: added check workflow --- .github/workflows/check.yml | 58 +++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..020bde4 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,58 @@ +name: Check + +on: + push: + branches: + - main + - 'renovate/**' + paths-ignore: + - '**.md' + - '.gitignore' + - 'assets/**' + - '.github/**' + - '!.github/workflows/check.yml' + + pull_request: + branches: + - main + paths-ignore: + - '**.md' + - '.gitignore' + - 'assets/**' + - '.github/**' + - '!.github/workflows/check.yml' + + workflow_dispatch: + workflow_call: + +jobs: + lint-check-and-test: + name: Lint, Check & Test + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + + - name: Setup PNPM + uses: pnpm/action-setup@v3.0.0 + + - name: Setup Node.js + uses: actions/setup-node@v4.0.2 + with: + node-version: 18 + cache: pnpm + + - name: Install Dependencies + run: | + pnpm install + pnpm exec playwright install --with-deps + + - name: Lint + run: pnpm run lint + + - name: Check + run: pnpm run check + + - name: Test + run: pnpm run test