Skip to content

Commit

Permalink
chore: update ci cd
Browse files Browse the repository at this point in the history
  • Loading branch information
jack0pan committed Sep 26, 2023
1 parent 5183e16 commit 3ac9585
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 405 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
- name: Restore Node.js modules
id: cache-node-modules
uses: actions/[email protected]
Expand Down
87 changes: 0 additions & 87 deletions .github/workflows/ci-master.yml

This file was deleted.

121 changes: 0 additions & 121 deletions .github/workflows/ci-pr.yml

This file was deleted.

126 changes: 0 additions & 126 deletions .github/workflows/ci-prt.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Continuous Integration
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
integration:
uses: growingio/.github/.github/workflows/ci-nodejs.yml@master
# intergration with sonar cloud
sonar:
name: Sonar scan
if: ${{ github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork }}
needs:
- integration
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download code coverage results
uses: actions/download-artifact@v3
with:
name: code-coverage-report
path: coverage
- name: Upload reports to SonarCloud
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Loading

0 comments on commit 3ac9585

Please sign in to comment.