chore: improve test

This commit is contained in:
Dogtiti
2024-10-11 15:17:38 +08:00
parent c5074f0aa4
commit be98aa2078
2 changed files with 27 additions and 4 deletions

23
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Run Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
- name: Install dependencies
run: yarn install
- name: Run Jest tests
run: yarn test:ci