From 5ba6833aaff310a3dce3a2b5bcd1dfe2859d1bd7 Mon Sep 17 00:00:00 2001 From: Yevhen Codes Date: Mon, 12 Aug 2024 21:17:22 +0200 Subject: [PATCH] add generative integration tests Github action --- .github/workflows/node.js.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..8427243 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,36 @@ +name: Run Vitest Tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-22.04 + + strategy: + matrix: + node-version: [20] + + steps: + - uses: actions/checkout@v4 + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Run tests + run: pnpm run test \ No newline at end of file