Skip to content

Commit

Permalink
ci(test/unit): add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HasithDeAlwis authored and MFarabi619 committed Aug 13, 2024
1 parent aac6bd9 commit d425990
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/TEST_unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Unit Tests

on:
push:
branches: '*'
pull_request:
branches: '*'

jobs:
test:
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]

steps:
- name: πŸ›ŽοΈ Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0 # All history for branches and tags

- name: 🍞 Install Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: πŸ“‚ Install Dependencies
run: bun install

- name: πŸ’€ Run Unit Tests
run: bun run test:vitest

- name: πŸ’° Profit
run: echo 🐞

0 comments on commit d425990

Please sign in to comment.