From 1b7dd43d0555ae068209bb1d65af20f8c557b558 Mon Sep 17 00:00:00 2001 From: JarvisJiang Date: Mon, 13 May 2024 16:57:13 +0800 Subject: [PATCH] Create test.yml --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..122bbcc --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Test + +on: + push: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 20 + - uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + - run: npm ci + - run: npm test