From 287ea5296c4930e7e3477871596e3a4747b1d54a Mon Sep 17 00:00:00 2001 From: tozydev Date: Sat, 21 Sep 2024 21:56:45 +0700 Subject: [PATCH] ci: add test workflow --- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..df5be5c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Test +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Bun + uses: oven-sh/setup-bun@v2 + + - name: Install dependencies + run: bun i --frozen-lockfile + + - name: Copy dev variables + run: cp .dev.vars.example .dev.vars + + - name: Run tests + run: bun vitest run