Skip to content

Commit

Permalink
Merge 2f853f2 into 49a56b3
Browse files Browse the repository at this point in the history
  • Loading branch information
ashraf-km committed Dec 8, 2020
2 parents 49a56b3 + 2f853f2 commit e547a4a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/build-ci.yml
@@ -0,0 +1,39 @@
name: Paypay Node SDK CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
CC_TEST_REPORTER_ID: cbd6f734a0585395a1e664feb0be141affd12ea562966f98fa8f81d29e868e30
strategy:
matrix:
node-version: [14, 12, 10]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: register repo token
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
echo repo_token: ${COVERALLS_REPO_TOKEN} > ./.coveralls.yml
- run: npm install
- run: npm run build --if-present
- run: npm test
- run: yarn coveralls

- name: Before script
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- name: Upload coverall reports
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload to CoPilot
run: bash <(curl -s https://copilot.blackducksoftware.com/ci/githubactions/scripts/upload)
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -17,7 +17,7 @@
"clean": "rm -rf ./.nyc_output ./node_modules/.cache ./coverage",
"lint": "eslint --ext .js,.jsx,.ts .",
"report": "nyc -r text -r lcov report",
"coveralls": "jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
"coveralls": "jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},
"keywords": [
"PayPay",
Expand Down

0 comments on commit e547a4a

Please sign in to comment.