Skip to content

Commit

Permalink
Added tests & lint to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmr232 committed Sep 5, 2024
1 parent 9188db7 commit 843d61a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
name: Package Extension
on: push
jobs:
package-extension:
test-and-package:
name: "Test & Package"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2

- run: bun install

- name: Lint & Check Formatting
run: |
failure=0
bun prettier . --check || failure=1
bun eslint || failure=1
- name: Test
run: bun test

- run: bun run package

- name: Setup Environment
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"publish": "bun run package && bun run vsce-publish",
"clean": "rm -r ./dist",
"web": "bun run --cwd ./src/frontend/ vite",
"test": "bun run vitest"
"format": "bun prettier . --write",
"lint": "bun format && bun run eslint"
},
"//": "START EXTENSION ATTRIBUTES",
"publisher": "tamir-bahar",
Expand Down

0 comments on commit 843d61a

Please sign in to comment.