From 4735e062b14efa3db32ee06956088b5a2be6bc74 Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Fri, 8 Mar 2024 17:24:10 +0800 Subject: [PATCH] ci: auto run test --- .github/workflows/test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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..a7fd624 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: Test + +on: [push, pull_request] + +jobs: + ci: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js 20.x + uses: actions/setup-node@v3 + with: + node-version: 20.x + + - name: ci + run: | + npm install + npm run test