generated from vtex-apps/react-app-template
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into bugfix/upload-only-xlsx-and-xls
- Loading branch information
Showing
10 changed files
with
152 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "[QE] Lint" | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: 12.x | ||
env: | ||
RUNNER_TEMP: /tmp | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: 'echo "::set-output name=dir::$(yarn cache dir)"' | ||
- uses: actions/cache@v1 | ||
id: yarn-cache | ||
with: | ||
path: "${{ steps.yarn-cache-dir-path.outputs.dir }}" | ||
key: "${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}" | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Lint project | ||
uses: vtex/action-lint@master |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: "[QE] SonarCloud" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
- release/* | ||
- feature/* | ||
- fix/* | ||
- chore/* | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
sonarcloud: | ||
name: SonarCloud | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Cache for node_modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Install base packages | ||
run: yarn install --frozen-lockfile | ||
if: steps.cache-node-modules.outputs.cache-hit != 'true' | ||
|
||
- name: Install node packages | ||
run: yarn install --frozen-lockfile | ||
working-directory: ./node | ||
if: steps.cache-node-modules.outputs.cache-hit != 'true' | ||
|
||
- name: Install react packages | ||
run: yarn install --frozen-lockfile | ||
working-directory: ./react | ||
if: steps.cache-node-modules.outputs.cache-hit != 'true' | ||
|
||
- name: SonarCloud Scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
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 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 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 |
---|---|---|
|
@@ -53,5 +53,5 @@ | |
"vtex.store-resources": "http://vtex.vtexassets.com/_v/public/typings/v1/[email protected]/public/_types/react", | ||
"vtex.styleguide": "http://vtex.vtexassets.com/_v/public/typings/v1/[email protected]/public/@types/vtex.styleguide" | ||
}, | ||
"version": "3.3.2" | ||
"version": "3.4.1" | ||
} |
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 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 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 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 |
---|---|---|
|
@@ -51,5 +51,5 @@ | |
"vtex.store-resources": "http://vtex.vtexassets.com/_v/public/typings/v1/[email protected]/public/_types/react", | ||
"vtex.styleguide": "http://vtex.vtexassets.com/_v/public/typings/v1/[email protected]/public/@types/vtex.styleguide" | ||
}, | ||
"version": "3.3.2" | ||
"version": "3.4.1" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
sonar.projectKey=vtex-apps_quickorder | ||
sonar.organization=vtex-apps | ||
|
||
# This is the name and version displayed in the SonarCloud UI. | ||
#sonar.projectName=quickorder | ||
#sonar.projectVersion=1.0 | ||
|
||
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. | ||
#sonar.sources=. | ||
|
||
# Encoding of the source code. Default is default system encoding | ||
#sonar.sourceEncoding=UTF-8 |