From d62eeeb288d3cbf12396393211843174268e6180 Mon Sep 17 00:00:00 2001 From: Jochem Brouwer Date: Thu, 15 Aug 2024 00:42:33 +0200 Subject: [PATCH] test --- .github/workflows/block-build.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/block-build.yml b/.github/workflows/block-build.yml index de61e9564b..83d81229c8 100644 --- a/.github/workflows/block-build.yml +++ b/.github/workflows/block-build.yml @@ -24,11 +24,23 @@ jobs: strategy: matrix: node-version: [18] - needs: build-monorepo steps: - - name: 'Cache build' - - uses: 'actions/cache@v3' + - uses: actions/checkout@v4 with: - path: '.' - key: '${{ runner.os }}-node-18-${{ git rev-parse HEAD }}' - restore-keys: '${{ runner.os }}-node-18' \ No newline at end of file + submodules: recursive + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + + - run: npm ci --omit=peer + working-directory: ${{github.workspace}} + + - run: npm run lint + - run: npm run coverage + - uses: codecov/codecov-action@v3 + with: + files: ${{ env.cwd }}/coverage/lcov.info + flags: block