Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
汪航洋 committed Jul 28, 2023
1 parent 27acc47 commit d9ea125
Showing 1 changed file with 43 additions and 6 deletions.
49 changes: 43 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,49 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: npm install
run: npm install

- name: Build
run: |
npm install
npm coverage
npm run build
run: npm run build

- name: Test
run: npm run coverage


- name: Coveralls
env:
COVERALLS_SERVICE_NAME: 'GitHub CI'
COVERALLS_GIT_BRANCH: master
COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
NODE_COVERALLS_DEBUG: 0 # or 1 for verbsoe
run: |
npm install coveralls
nyc report --reporter=text-lcov | coveralls
npm install coveralls -g
npx nyc report --reporter=text-lcov | coveralls
# - name: out coverage file
# run: npx nyc report --reporter=text-lcov > ./coverage/test.lcov

# - name: Coveralls
# uses: coverallsapp/github-action@v2
# with:
# github-token: ${{ github.token }}
# debug: true

# run: |
# npm install coveralls -g
# npx nyc report --reporter=text-lcov | coveralls

# with:
# flag-name: run-${{ join(matrix.*, '-') }}
# parallel: true

# finish:
# needs: test
# if: ${{ always() }}
# runs-on: ubuntu-latest
# steps:
# - name: Coveralls Finished
# uses: coverallsapp/github-action@v2
# with:
# parallel-finished: true

0 comments on commit d9ea125

Please sign in to comment.