-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: fix import path * fix: fix release routine and version * ci: add lint, clean artifacts & add release routine * ci: revert coverage clean routine and remove reportDirectory option
- Loading branch information
Showing
5 changed files
with
82 additions
and
13 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,59 @@ | ||
trigger: | ||
- next | ||
|
||
jobs: | ||
- job: Linux | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
strategy: | ||
matrix: | ||
node_10_x: | ||
node_version: 10.x | ||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: $(node_version) | ||
displayName: "Install Node.js $(node_version)" | ||
|
||
- task: CacheBeta@0 | ||
inputs: | ||
key: yarn | $(Agent.OS) | yarn.lock | ||
path: $(YARN_CACHE_FOLDER) | ||
displayName: Cache Yarn packages | ||
|
||
- script: yarn --frozen-lockfile | ||
displayName: "Install dependencies" | ||
|
||
- script: yarn build | ||
displayName: "Build" | ||
|
||
- script: yarn lint | ||
displayName: "Check linting" | ||
condition: succeeded() | ||
|
||
- script: yarn test:ci | ||
displayName: "Run tests" | ||
condition: succeeded() | ||
|
||
- task: PublishTestResults@2 | ||
displayName: "Publish test results" | ||
condition: succeededOrFailed() | ||
inputs: | ||
testRunner: JUnit | ||
testResultsFiles: "junit.xml" | ||
testRunTitle: "CI Tests $(Agent.OS)" | ||
|
||
- task: PublishCodeCoverageResults@1 | ||
displayName: "Publish test coverage results" | ||
condition: succeededOrFailed() | ||
inputs: | ||
codeCoverageTool: Cobertura | ||
summaryFileLocation: "$(Build.SourcesDirectory)/coverage/cobertura-coverage.xml" | ||
|
||
- script: yarn semantic-release || true | ||
displayName: Release | ||
condition: succeeded() | ||
|
||
variables: | ||
CI: true | ||
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn |
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