Skip to content

Commit

Permalink
fix(github-action): removed unwanted steps and added testing job
Browse files Browse the repository at this point in the history
  • Loading branch information
231tr0n committed Mar 3, 2024
1 parent 836321e commit 93042fb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: CI

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
commitlint:
Expand All @@ -11,7 +17,6 @@ jobs:
fetch-depth: 0
- name: Install required dependencies
run: |
sudo apt install -y git curl
curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo DEBIAN_FRONTEND=noninteractive apt install -y nodejs
- name: Print versions
Expand All @@ -28,3 +33,5 @@ jobs:
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm run test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ vite.config.ts.timestamp-*
/.unlighthouse

package-lock.json
coverage
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
pnpm-lock.yaml
package-lock.json
yarn.lock
coverage
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"test": "vitest",
"devtest": "vitest --watch",
"test": "vitest --run --coverage",
"lint": "prettier --check . && eslint .",
"format": "prettier --check --write .",
"prepare": "husky",
Expand Down

0 comments on commit 93042fb

Please sign in to comment.