Skip to content

Commit

Permalink
chore(workflow): change param github repo owner
Browse files Browse the repository at this point in the history
  • Loading branch information
rudemex committed Feb 23, 2022
1 parent 70484d2 commit f95575c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/develop.yml
Expand Up @@ -24,34 +24,41 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: "πŸ’Ύ Restore Dependencies from cache"
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: "πŸ“¦ Install Dependencies"
run: npm install

- name: "πŸ”¦ Lint"
run: npm run lint

- name: "πŸ”¨ Build"
run: npm run build

- name: "πŸ‘¨β€πŸ’» Run Test"
run: npm run test
env:
NODE_ENV: 'test'

- name: "πŸ“Š Upload coverage report to Codecov"
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: "πŸ“Š SonarCloud Scan"
uses: SonarSource/sonarcloud-github-action@master
with:
args: >
-Dsonar.organization=${{ github.event.repository.owner.name }}
-Dsonar.projectKey=${{ github.event.repository.owner.name }}_${{ github.event.repository.name }}
-Dsonar.projectName=${{ github.event.repository.owner.name }}_${{ github.event.repository.name }}
-Dsonar.organization=${{ github.repository_owner }}
-Dsonar.projectKey=${{ github.repository_owner }}_${{ github.event.repository.name }}
-Dsonar.projectName=${{ github.repository_owner }}_${{ github.event.repository.name }}
-Dsonar.projectVersion=1.0
-Dsonar.sourceEncoding=UTF-8
-Dsonar.sources=./src
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/master.yml
Expand Up @@ -24,34 +24,41 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: "πŸ’Ύ Restore Dependencies from cache"
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: "πŸ“¦ Install Dependencies"
run: npm install

- name: "πŸ”¦ Lint"
run: npm run lint

- name: "πŸ”¨ Build"
run: npm run build

- name: "πŸ‘¨β€πŸ’» Run Test"
run: npm run test
env:
NODE_ENV: 'test'

- name: "πŸ“Š Upload coverage report to Codecov"
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: "πŸ“Š SonarCloud Scan"
uses: SonarSource/sonarcloud-github-action@master
with:
args: >
-Dsonar.organization=${{ github.event.repository.owner.name }}
-Dsonar.projectKey=${{ github.event.repository.owner.name }}_${{ github.event.repository.name }}
-Dsonar.projectName=${{ github.event.repository.owner.name }}_${{ github.event.repository.name }}
-Dsonar.organization=${{ github.repository_owner }}
-Dsonar.projectKey=${{ github.repository_owner }}_${{ github.event.repository.name }}
-Dsonar.projectName=${{ github.repository_owner }}_${{ github.event.repository.name }}
-Dsonar.projectVersion=1.0
-Dsonar.sourceEncoding=UTF-8
-Dsonar.sources=./src
Expand Down

0 comments on commit f95575c

Please sign in to comment.