fix ci #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# node-version: [16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
# - name: Use Node.js ${{ matrix.node-version }} | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
# node-version: ${{ matrix.node-version }} | |
- name: npm install | |
run: npm install | |
- name: 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 -g | |
npx nyc report --reporter=text-lcov | |
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 |