ci: added check workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 18 | |
cache: pnpm | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Lint | |
run: pnpm run lint | |
- name: Check | |
run: pnpm run check | |
- name: Test | |
run: pnpm run test |