-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(semantic-release): provide release automation
- Loading branch information
Artur Kudlacz
committed
Sep 2, 2020
1 parent
c69f80c
commit f6c66d6
Showing
2 changed files
with
23 additions
and
10 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 |
---|---|---|
|
@@ -3,28 +3,41 @@ on: pull_request | |
|
||
jobs: | ||
test: | ||
name: build & test | ||
name: Build & Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
- name: Checkout source code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
- name: Install dependencies | ||
run: npm install | ||
- run: npm run build:production | ||
- run: npm run test | ||
run: npm ci | ||
- name: Code coverage | ||
run: npm run test:coverage | ||
- name: Lint | ||
uses: hallee/[email protected] | ||
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }} | ||
with: | ||
repo-token: ${{secrets.GITHUB_TOKEN}} | ||
- name: Upload coverage report | ||
- name: Store code coverage as workflow artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: coverage | ||
name: istanbul-code-coverage.zip | ||
path: coverage | ||
- name: Code coverage | ||
- name: Provide code coverage info as comment in pull request | ||
uses: codecov/codecov-action@v1 | ||
- name: Provide sonar static code analysis as comment in pull request | ||
uses: sonarsource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
with: | ||
projectBaseDir: . | ||
args: > | ||
-Dsonar.organization=adobeinc | ||
-Dsonar.projectKey=adobe_aem-angular-editable-components | ||
-Dsonar.verbose=true |
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