From 137547c84fe3174ac37d0ba1d23df81485bd9297 Mon Sep 17 00:00:00 2001 From: ZL Asica <40444637+ZL-Asica@users.noreply.github.com> Date: Fri, 15 Nov 2024 15:42:48 -0600 Subject: [PATCH] ci: add action to auto run test for this branch. --- .github/workflows/test-elara.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test-elara.yml diff --git a/.github/workflows/test-elara.yml b/.github/workflows/test-elara.yml new file mode 100644 index 0000000..cba37ff --- /dev/null +++ b/.github/workflows/test-elara.yml @@ -0,0 +1,31 @@ +name: Run Tests + +on: + push: + branches: + - test/elara + +concurrency: + group: test-run-${{ github.ref }} + cancel-in-progress: true + +jobs: + run-tests: + name: ๐Ÿงช Run Tests + runs-on: ubuntu-latest + + steps: + - name: ๐Ÿ“ฅ Checkout Code + uses: actions/checkout@v4 + + - name: ๐Ÿ› ๏ธ Setup Node + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + cache: 'npm' + + - name: ๐Ÿ“‚ Install Packages + run: npm ci + + - name: ๐Ÿงช Run Tests with Vitest + run: npx vitest run