From d12d999f7090422687a46f6e71cf664f1ee264e5 Mon Sep 17 00:00:00 2001 From: Lubos Date: Mon, 29 Jan 2024 16:01:00 +0000 Subject: [PATCH] test(ci): match steps from CircleCI --- .github/workflows/unittest.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 5b78eb8c3..88d0fde35 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -6,15 +6,32 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - name: Checkout + uses: actions/checkout@v4.1.1 + + - name: Setup Node environment + uses: actions/setup-node@v4.0.1 with: node-version: 20 + - name: Cache Modules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: "**/node_modules" key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - - run: npm install - - run: npm run test + + - name: Install dependencies + run: npm install + + - name: Build library + run: npm run release + + - name: Run unit tests + run: npm run test + + # - name: Run e2e tests + # run: npm run test:e2e + + # - name: Submit to Codecov + # run: npm run codecov