Skip to content

Commit

Permalink
Merge pull request #313 from Azure/dev
Browse files Browse the repository at this point in the history
Promote dev to main for 1.5.4 relase
  • Loading branch information
davidmrdavid authored Jan 22, 2022
2 parents b37999f + 4dc9bf3 commit bd9a7e4
Show file tree
Hide file tree
Showing 6 changed files with 207 additions and 208 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"tabWidth": 4,
"true": false,
"singleQuote": false,
"printWidth": 100
"printWidth": 100,
"endOfLine": "auto"
}
33 changes: 33 additions & 0 deletions azure-pipelines-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
trigger: none
pr: none

resources:
pipelines:
- pipeline: DurableJSCI
project: "Azure Functions"
source: azure-functions-durable-js
branch: main

jobs:
- job: Release
pool:
name: "1ES-Hosted-AzFunc"
demands:
- ImageOverride -equals MMSUbuntu20.04TLS
steps:
- task: NodeTool@0
displayName: "Install Node.js"
inputs:
versionSpec: 14.x
- download: DurableJSCI
- script: mv *.tgz package.tgz
displayName: "Rename tgz file" # because the publish command below requires an exact path
workingDirectory: "$(Pipeline.Workspace)/DurableJSCI/drop"
- task: Npm@1
displayName: "npm publish"
inputs:
command: custom
workingDir: "$(Pipeline.Workspace)/DurableJSCI/drop"
verbose: true
customCommand: "publish package.tgz"
publishEndpoint: "NPM Durable Functions JS Publish"
135 changes: 96 additions & 39 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,101 @@
variables: {
MODULE_VERSION: '1.2.2',
NODE_8: '8.x',
NODE_10: '10.x',
NODE_12: '12.x',
NODE_14: '14.x'
}
variables:
{ MODULE_VERSION: "1.2.2", NODE_10: "10.x", NODE_12: "12.x", NODE_14: "14.x", NODE_16: "16.x" }
name: $(MODULE_VERSION)-$(Date:yyyyMMdd)$(Rev:.r)

pr:
branches:
include:
- main
- dev

trigger:
- main
- dev
- main
- dev

jobs:
- job: UnitTests
strategy:
matrix:
WINDOWS_NODE8:
IMAGE_TYPE: 'vs2017-win2016'
NODE_VERSION: $(NODE_8)
WINDOWS_NODE10:
IMAGE_TYPE: 'vs2017-win2016'
NODE_VERSION: $(NODE_10)
WINDOWS_NODE12:
IMAGE_TYPE: 'vs2017-win2016'
NODE_VERSION: $(NODE_12)
WINDOWS_NODE14:
IMAGE_TYPE: 'vs2017-win2016'
NODE_VERSION: $(NODE_14)
pool:
vmImage: $(IMAGE_TYPE)
steps:
- task: NodeTool@0
inputs:
versionSpec: $(NODE_VERSION)
displayName: 'Install Node.js'
- script: npm install
displayName: 'npm install'
- script: npm run test
displayName: 'npm build and test'
condition: ne(variables['NODE_VERSION'], variables['NODE_8'])
- script: npm run test:nolint
displayName: 'npm build and test (no linting)'
condition: eq(variables['NODE_VERSION'], variables['NODE_8'])
- job: UnitTests
strategy:
matrix:
UBUNTU_NODE10:
IMAGE_TYPE: "ubuntu-latest"
NODE_VERSION: $(NODE_10)
UBUNTU_NODE12:
IMAGE_TYPE: "ubuntu-latest"
NODE_VERSION: $(NODE_12)
UBUNTU_NODE14:
IMAGE_TYPE: "ubuntu-latest"
NODE_VERSION: $(NODE_14)
UBUNTU_NODE16:
IMAGE_TYPE: "ubuntu-latest"
NODE_VERSION: $(NODE_16)
WINDOWS_NODE10:
IMAGE_TYPE: "windows-latest"
NODE_VERSION: $(NODE_10)
WINDOWS_NODE12:
IMAGE_TYPE: "windows-latest"
NODE_VERSION: $(NODE_12)
WINDOWS_NODE14:
IMAGE_TYPE: "windows-latest"
NODE_VERSION: $(NODE_14)
WINDOWS_NODE16:
IMAGE_TYPE: "windows-latest"
NODE_VERSION: $(NODE_16)
MAC_NODE10:
IMAGE_TYPE: "macOS-latest"
NODE_VERSION: $(NODE_10)
MAC_NODE12:
IMAGE_TYPE: "macOS-latest"
NODE_VERSION: $(NODE_12)
MAC_NODE14:
IMAGE_TYPE: "macOS-latest"
NODE_VERSION: $(NODE_14)
MAC_NODE16:
IMAGE_TYPE: "macOS-latest"
NODE_VERSION: $(NODE_16)
pool:
vmImage: $(IMAGE_TYPE)
steps:
- task: NodeTool@0
inputs:
versionSpec: $(NODE_VERSION)
displayName: "Install Node dependencies"
- script: npm ci
displayName: "npm ci"
- script: npm run test
displayName: "npm build and test"
- script: npm run test:nolint
displayName: "npm build and test (no linting)"
- job: BuildArtifacts
pool:
name: "1ES-Hosted-AzFunc"
demands:
- ImageOverride -equals MMSUbuntu20.04TLS
steps:
- task: NodeTool@0
inputs:
versionSpec: $(NODE_14)
displayName: "Install Node.js"
- script: npm ci
displayName: "npm ci"
- script: npm build
displayName: "npm build"
- script: npm prune --production
displayName: "npm prune --production" # so that only production dependencies are included in SBOM
- script: npm pack
displayName: "pack npm package"
- task: CopyFiles@2
displayName: "Copy types package to staging"
inputs:
SourceFolder: $(System.DefaultWorkingDirectory)
Contents: "*.tgz"
TargetFolder: $(Build.ArtifactStagingDirectory)
- task: ManifestGeneratorTask@0
displayName: "SBOM Generation Task"
inputs:
BuildDropPath: "$(Build.ArtifactStagingDirectory)"
Verbosity: "Information"
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: "$(Build.ArtifactStagingDirectory)"
ArtifactName: "drop"
publishLocation: "Container"
Loading

0 comments on commit bd9a7e4

Please sign in to comment.