Skip to content

Promote dev to main for 1.5.4 relase #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jan 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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