From 90308733ce0cc4b75700453c6158406f2edcddb1 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Mon, 19 Sep 2022 12:50:56 -0700 Subject: [PATCH] feat: collect codecov integration tests --- .github/workflows/build.yaml | 8 ++++++++ ci/dev/test-integration.sh | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6fb661496..20aba5e92 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -382,6 +382,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 container: "centos:7" + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} steps: - name: Checkout repo @@ -438,6 +440,12 @@ jobs: - name: Run integration tests on standalone release run: yarn test:integration + - name: Upload coverage report to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + if: success() + - name: Build packages with nfpm run: yarn package diff --git a/ci/dev/test-integration.sh b/ci/dev/test-integration.sh index b2868154f..29051c72f 100755 --- a/ci/dev/test-integration.sh +++ b/ci/dev/test-integration.sh @@ -24,7 +24,6 @@ main() { path="$CODE_SERVER_PATH" fi - # WIP jsjoeio if [[ ! -f "test/integration/test-plugin/out/index.js" ]]; then echo "Building test plugin" pushd test/integration/test-plugin