From 0a181a08952593a23c5f2522514bbcd4e0f1af51 Mon Sep 17 00:00:00 2001 From: lisez Date: Fri, 10 May 2024 22:01:54 +0800 Subject: [PATCH] feat: add github actions --- .github/workflows/nodejs.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..f6035ce --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,20 @@ +name: NodeJS CI + +on: + - push + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: ['18.x', '20.x', '22.x'] + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: yarn install --frozen-lockfile + - run: yarn build && yarn bundle + - run: yarn test