test: reimplement unit testing (#229)

* test: add test for `getInputs` function

* ci(test): add `test-package` job
This commit is contained in:
Alfi Maulana
2024-03-08 21:20:32 +07:00
committed by GitHub
parent a6cac00b5d
commit f948a9da23
7 changed files with 2661 additions and 14 deletions

View File

@@ -30,6 +30,26 @@ jobs:
- name: Check Lint
run: yarn lint
test-package:
name: Test Package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Setup Node.js
uses: actions/setup-node@v4.0.2
with:
node-version: latest
- name: Setup Yarn
uses: threeal/setup-yarn-action@v2.0.0
with:
version: stable
- name: Test Package
run: yarn test
test-action:
name: Test Action
runs-on: ${{ matrix.os }}-latest