From 4aa3cf73fa7c74255323f2a5e41c477b16c07677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Fri, 6 Dec 2024 17:37:13 +0800 Subject: [PATCH] chore: add npm test ver --- .github/workflows/test-npm.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/test-npm.yml diff --git a/.github/workflows/test-npm.yml b/.github/workflows/test-npm.yml new file mode 100644 index 0000000..24ae980 --- /dev/null +++ b/.github/workflows/test-npm.yml @@ -0,0 +1,19 @@ +name: react component workflow + +on: [workflow_call] + +jobs: + react-component-workflow: + name: react component workflow + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - run: npm i --legacy-peer-deps + - run: npm run lint + - run: npx tsc --noEmit + - run: npm run compile + - run: npm run test -- --coverage + - uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }}