From beae26beb0aaef8d0bd050c95812f3918ea0a9d5 Mon Sep 17 00:00:00 2001 From: ernestman28 Date: Thu, 4 Jun 2020 15:18:10 +0100 Subject: [PATCH] feat(pipeline): enable sonar on master (#25) * feat(pipeline): enable sonar on master * fix(pipeline github action): tidy up github action --- .github/workflows/prbuild.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/prbuild.yml b/.github/workflows/prbuild.yml index 8d7785ba..6e41e02c 100644 --- a/.github/workflows/prbuild.yml +++ b/.github/workflows/prbuild.yml @@ -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 @@ -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: