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 d8701c6
Showing 1 changed file with 34 additions and 7 deletions.
41 changes: 34 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,39 @@ 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: out coverage file
run: npx nyc report --reporter=text-lcov > ./coverage/test.lcov

- name: Coveralls
run: |
npm install coveralls
nyc report --reporter=text-lcov | 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 d8701c6

Please sign in to comment.