Skip to content

Commit

Permalink
fix(semantic-release): provide release automation
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Kudlacz committed Sep 2, 2020
1 parent c69f80c commit f6c66d6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout source code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
Expand All @@ -21,4 +21,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release
run: npm run semantic-release

0 comments on commit f6c66d6

Please sign in to comment.