Skip to content

Commit

Permalink
feat(pipeline): enable sonar on master (#25)
Browse files Browse the repository at this point in the history
* feat(pipeline): enable sonar on master

* fix(pipeline github action): tidy up github action
  • Loading branch information
ernestman28 committed Jun 4, 2020
1 parent 556c460 commit beae26b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/prbuild.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
# push:
# branches:
# - master
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
name: PR Build
Expand All @@ -13,15 +13,17 @@ jobs:
steps:
- name: Clone Repo
uses: actions/checkout@v2
- name: Setup Node & Generate report
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn install
- run: yarn ci
- run: yarn test
- run: yarn test:coverage
- run: sed -i 's+/home/runner/work/rpx-xui-node-lib/rpx-xui-node-lib+/github/workspace+g' coverage/lcov.info
- name: Create code coverage report
run: yarn test:coverage
- name: Change Report Path
run: sed -i 's+/home/runner/work/rpx-xui-node-lib/rpx-xui-node-lib+/github/workspace+g' coverage/lcov.info
- name: Archive code coverage results
uses: actions/upload-artifact@v1
with:
Expand Down

0 comments on commit beae26b

Please sign in to comment.