diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fe26eb5acb..6621f53a93c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,6 @@ name: Node CI on: - push: - branches: - - formily_next pull_request: branches: - formily_next @@ -11,7 +8,6 @@ on: jobs: build: runs-on: ${{ matrix.os }} - if: contains(github.event.head_commit.message, 'chore(versions)') == false strategy: matrix: node_version: [10.x, 11.x] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c1e6096d0fe..920ccc62c97 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,21 @@ jobs: yarn -v yarn --ignore-engines yarn build + yarn test:prod yarn run release:force + env: + CI: true + HEADLESS: false + PROGRESS: none + NODE_ENV: test + NODE_OPTIONS: --max_old_space_size=4096 + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true + verbose: true env: HEADLESS: false PROGRESS: none