Skip to content

Commit

Permalink
test: add unit tests for the opts functions
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Apr 3, 2024
1 parent 969118a commit d086e9f
Show file tree
Hide file tree
Showing 5 changed files with 971 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: Test
name: Actions Test
on:
push:
pull_request:
jobs:
test:
actions_test:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check Dist
name: Tests

on:
pull_request:
Expand All @@ -8,8 +8,7 @@ permissions:
contents: read

jobs:
check-dist:
name: Check dist/
tests:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -44,3 +43,6 @@ jobs:
name: dist
path: dist/
retention-days: 10

- name: Run Tests
run: pnpm run test
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"type": "module",
"scripts": {
"build": "parcel build",
"prepare": "npm run build"
"prepare": "npm run build",
"test": "vitest"
},
"keywords": [
"buildkit",
Expand All @@ -25,7 +26,8 @@
"devDependencies": {
"@types/node": "^20.11.30",
"parcel": "^2.12.0",
"typescript": "^5.4.3"
"typescript": "^5.4.3",
"vitest": "^1.4.0"
},
"dependencies": {
"@actions/core": "~1.5.0",
Expand Down
Loading

0 comments on commit d086e9f

Please sign in to comment.