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