From 039cbf3485a98eb4e908aa4168ba48c593034910 Mon Sep 17 00:00:00 2001 From: Enzo Vezzaro Date: Thu, 28 Apr 2022 07:06:49 -0400 Subject: [PATCH] test unified test action for CI --- .github/workflows/ci.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74426a4ed..256d47e91 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,12 +37,23 @@ jobs: restore-keys: ${{ runner.os }}-${{ matrix.node }}-build-${{ env.cache-name }}- - run: npm ci - - run: npm test - run: npm run build - coverage: - runs-on: ubuntu-latest - steps: + - name: Code climate action - uses: paambaati/codeclimate-action@v2.7.1 # using 2.7.1 for issue: https://github.com/paambaati/codeclimate-action/issues/316 env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} + with: + coverageCommand: npm test +# coverage: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2 +# - uses: actions/setup-node@v2 +# - run: npm ci +# - run: npm run build +# - uses: paambaati/codeclimate-action@v2.7.1 # using 2.7.1 for issue: https://github.com/paambaati/codeclimate-action/issues/316 +# env: +# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} +# with: +# coverageCommand: npm test