Skip to content

Commit

Permalink
ci: add qa
Browse files Browse the repository at this point in the history
  • Loading branch information
mishamyrt committed May 20, 2024
1 parent 15c2b48 commit a85664f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Quality Assurance

on:
- push

jobs:
test:
env:
PNPM_VERSION: '9.1.1'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: |
cwd: ./
args: [--frozen-lockfile]
version: ${{ env.PNPM_VERSION }}

- name: Check code style
run: pnpm lint

- name: Check library build
run: pnpm build

- name: Run tests
run: pnpm test
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"scripts": {
"dev": "vite dev",
"start": "pnpm dev",
"build": "vite build"
"build": "vite build",
"test": "vitest --run",
"lint": "eslint ."
},
"keywords": [
"svelte",
Expand Down

0 comments on commit a85664f

Please sign in to comment.