Skip to content

Commit

Permalink
update to node20
Browse files Browse the repository at this point in the history
  • Loading branch information
vhvb1989 committed Mar 25, 2024
1 parent 87610eb commit ba3fa8e
Show file tree
Hide file tree
Showing 29 changed files with 54 additions and 54 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cli-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: "^1.21.0"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand All @@ -33,10 +33,10 @@ jobs:
cspell-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "20"
- run: npm install -g cspell
- name: Spell check for CLI source code
run: cspell lint '**/*.go' --config ./cli/azd/.vscode/cspell.yaml --root ./cli/azd --no-progress
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cspell-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
cspell-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "20"
- run: npm install -g cspell
- name: Spell check for general files
run: cspell lint '**/*' --config ./.vscode/cspell.misc.yaml --relative --no-progress
2 changes: 1 addition & 1 deletion .github/workflows/devcontainer-feature-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
environment:
name: deploy-devcontainer-feature
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: "Publish Features"
uses: devcontainers/action@v1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/devcontainer-feature-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
"mcr.microsoft.com/devcontainers/base:debian",
]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: "Install latest devcontainer CLI"
run: npm install -g @devcontainers/cli
Expand All @@ -37,7 +37,7 @@ jobs:
test-scenarios:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: "Install latest devcontainer CLI"
run: npm install -g @devcontainers/cli
Expand All @@ -49,7 +49,7 @@ jobs:
test-global:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: "Install latest devcontainer CLI"
run: npm install -g @devcontainers/cli
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/devops-ext-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "20"
- name: Install dependencies
run: |
npm install -g npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-bicep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
bicep-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint .bicep files
run: $ErrorActionPreference='Continue'; eng/scripts/Test-BicepLint.ps1 -Verbose
shell: pwsh
4 changes: 2 additions & 2 deletions .github/workflows/schema-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "20"
- run: npm install -g jsonlint
- name: Validate schemas JSON
run: jsonlint schemas/**/*.json -c
6 changes: 3 additions & 3 deletions .github/workflows/templates-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
cspell-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "20"
- run: npm install -g cspell
- name: Spell check for templates
run: cspell lint '**/*' --config ./templates/cspell.yaml --root ./templates --no-progress
12 changes: 6 additions & 6 deletions .github/workflows/vscode-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
cspell-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "20"
- run: npm install -g cspell
- name: Spell check for vscode extension
run: cspell lint '**/*.ts' --config ./ext/vscode/.vscode/cspell.yaml --root ./ext/vscode --no-progress
Expand All @@ -28,17 +28,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
upload-artifact: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Azure Developer CLI",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18-bullseye",
"image": "mcr.microsoft.com/devcontainers/javascript-node:20-bullseye",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Azure Developer CLI",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18-bullseye",
"image": "mcr.microsoft.com/devcontainers/javascript-node:20-bullseye",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Azure Developer CLI",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18-bullseye",
"image": "mcr.microsoft.com/devcontainers/javascript-node:20-bullseye",
"features": {
"ghcr.io/devcontainers/features/azure-cli:1": {
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Azure Developer CLI",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18-bullseye",
"image": "mcr.microsoft.com/devcontainers/javascript-node:20-bullseye",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Azure Developer CLI",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18-bullseye",
"image": "mcr.microsoft.com/devcontainers/javascript-node:20-bullseye",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Azure Developer CLI",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18-bullseye",
"image": "mcr.microsoft.com/devcontainers/javascript-node:20-bullseye",
"features": {
"ghcr.io/devcontainers/features/azure-cli:1": {
},
Expand Down
2 changes: 1 addition & 1 deletion templates/common/.github/workflows/func/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install azd
uses: Azure/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion templates/common/.github/workflows/java/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install azd
uses: Azure/[email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install azd
uses: Azure/[email protected]
Expand All @@ -29,7 +29,7 @@ jobs:
chmod +x ${GITHUB_WORKSPACE}/src/api/mvnw
- name: Install Nodejs
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

Expand Down
4 changes: 2 additions & 2 deletions templates/common/.github/workflows/nodejs/bicep/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install azd
uses: Azure/[email protected]

- name: Install Nodejs
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

Expand Down
4 changes: 2 additions & 2 deletions templates/common/.github/workflows/nodejs/func/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install azd
uses: Azure/[email protected]

- name: Install Nodejs
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install azd
uses: Azure/[email protected]

- name: Install Nodejs
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

Expand Down
4 changes: 2 additions & 2 deletions templates/common/.github/workflows/terraform/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install azd
uses: Azure/[email protected]

- name: Install Nodejs
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ variable "resource_token" {
variable "node_version" {
description = "the application stack node version to set for the app service."
type = string
default = "18-lts"
default = "20-lts"
}

variable "always_on" {
Expand Down
2 changes: 1 addition & 1 deletion templates/todo/api/js/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.17-alpine AS build
FROM node:20-alpine AS build

WORKDIR /app

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module api '../../../../../common/infra/bicep/core/host/appservice.bicep' = {
appSettings: appSettings
keyVaultName: keyVaultName
runtimeName: 'node'
runtimeVersion: '18-lts'
runtimeVersion: '20-lts'
scmDoBuildDuringDeployment: true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module api '../../../../../common/infra/bicep/core/host/functions.bicep' = {
appServicePlanId: appServicePlanId
keyVaultName: keyVaultName
runtimeName: 'node'
runtimeVersion: '18'
runtimeVersion: '20-lts'
storageAccountName: storageAccountName
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/todo/common/infra/bicep/app/web-appservice.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module web '../../../../../common/infra/bicep/core/host/appservice.bicep' = {
applicationInsightsName: applicationInsightsName
appServicePlanId: appServicePlanId
runtimeName: 'node'
runtimeVersion: '18-lts'
runtimeVersion: '20-lts'
tags: union(tags, { 'azd-service-name': serviceName })
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/todo/web/react-fluent/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine AS build
FROM node:20-alpine AS build

# make the 'app' folder the current working directory
WORKDIR /app
Expand Down

0 comments on commit ba3fa8e

Please sign in to comment.