From d0ba7aa5320ecd5478f349d8eb4cd90f0b6b497d Mon Sep 17 00:00:00 2001 From: HasithDeAlwis Date: Sun, 11 Aug 2024 18:38:48 -0400 Subject: [PATCH] ci(test/unit): add workflow --- .github/workflows/TEST_unit.yml | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/TEST_unit.yml diff --git a/.github/workflows/TEST_unit.yml b/.github/workflows/TEST_unit.yml new file mode 100644 index 00000000..3c67de99 --- /dev/null +++ b/.github/workflows/TEST_unit.yml @@ -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 🐞