mirror of
https://github.com/Paillat-dev/svelte-github-calendar.git
synced 2026-01-02 01:06:20 +00:00
First commit
This commit is contained in:
46
.github/workflows/quality.yaml
vendored
Normal file
46
.github/workflows/quality.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Quality Checks
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
quality:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
check: [format, lint, typecheck, build]
|
||||
include:
|
||||
- check: format
|
||||
name: "Format Check"
|
||||
command: "pnpm prettier --check ."
|
||||
- check: lint
|
||||
name: "Lint Check"
|
||||
command: "pnpm eslint ."
|
||||
- check: typecheck
|
||||
name: "Type Check"
|
||||
command: "pnpm check"
|
||||
- check: build
|
||||
name: "Build Check"
|
||||
command: "pnpm build"
|
||||
|
||||
name: ${{ matrix.name }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 8
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: ${{ matrix.name }}
|
||||
run: ${{ matrix.command }}
|
||||
Reference in New Issue
Block a user