Skip to content

Commit

Permalink
ci: add action to auto run test for this branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZL-Asica committed Nov 15, 2024
1 parent 4e55163 commit 137547c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test-elara.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 137547c

Please sign in to comment.