-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40c396e
commit 90624ac
Showing
10 changed files
with
436 additions
and
344 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ jobs: | |
node: | ||
- '12' | ||
- '14' | ||
- '16' | ||
name: Build and test (Node ${{ matrix.node }}) | ||
steps: | ||
- name: Check out the code | ||
|
@@ -25,6 +26,9 @@ jobs: | |
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Update npm | ||
run: npm i -g npm@latest | ||
|
||
- name: Cache Node modules | ||
uses: actions/[email protected] | ||
env: | ||
|
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,9 @@ jobs: | |
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Update npm | ||
run: npm i -g npm@latest | ||
|
||
- name: Cache Node modules | ||
uses: actions/[email protected] | ||
env: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,27 @@ name: SonarCloud Analysis | |
|
||
on: | ||
push: | ||
branches: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
env: | ||
NODE_VERSION: "14" | ||
SONARSCANNER: "true" | ||
|
||
jobs: | ||
build: | ||
name: SonarCloud Scan | ||
runs-on: ubuntu-latest | ||
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') || github.event_name == 'workflow_dispatch' }} | ||
env: | ||
NODE_VERSION: '14' | ||
if: | | ||
github.event_name == 'workflow_dispatch' || | ||
github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && github.event.sender.login != 'dependabot[bot]' || | ||
!contains(github.event.head_commit.message, '[ci skip]') | ||
steps: | ||
- name: Check out the code | ||
- name: Check out the source code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
@@ -24,6 +32,9 @@ jobs: | |
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Update npm | ||
run: npm i -g npm@latest | ||
|
||
- name: Cache Node modules | ||
uses: actions/[email protected] | ||
env: | ||
|
@@ -49,7 +60,7 @@ jobs: | |
COLLECT_COVERAGE: "1" | ||
|
||
- name: Retrieve information from package.json | ||
uses: myrotvorets/[email protected].2 | ||
uses: myrotvorets/[email protected].4 | ||
id: ver | ||
|
||
- name: Fix paths in test-report.xml | ||
|
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
Oops, something went wrong.