Skip to content
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
33 changes: 33 additions & 0 deletions .github/workflows/eslint-validation-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "ESLint validation tests"
on: [workflow_dispatch, pull_request]

jobs:
eslint-validation-test:
runs-on: ubuntu-latest
strategy:
matrix:
include: # Includes one more job
- dir: 'BlockBlobReader/target/consumer_build'
- dir: 'BlockBlobReader/target/dlqprocessor_build'
- dir: 'BlockBlobReader/target/producer_build'
- dir: 'AppendBlobReader/target/producer_build'
- dir: 'AppendBlobReader/target/appendblob_producer_build'
- dir: 'AppendBlobReader/target/consumer_build'
- dir: 'AppendBlobReader/target/consumer_build'
- dir: 'AppendBlobReader/target/consumer_build'
- dir: 'EventHubs/target/metrics_build'
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Run ESLint
working-directory: ${{ matrix.dir }}
run: |
npm install eslint globals @eslint/js
cp ../../../eslint.config.mjs .
npx eslint . --ext .js
4 changes: 2 additions & 2 deletions .github/workflows/syntax-validation-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Syntax validation tests"
on: [workflow_dispatch, pull_request]

jobs:
package-version-test:
node-syntax-test:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- working-directory: ${{ matrix.dir }}
run: |
Expand Down
6 changes: 3 additions & 3 deletions AppendBlobReader/src/appendblobreaderdeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~18"
"value": "~20"
},
{
"name": "FUNCTION_APP_EDIT_MODE",
Expand Down Expand Up @@ -640,7 +640,7 @@
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~18"
"value": "~20"
},
{
"name": "FUNCTION_APP_EDIT_MODE",
Expand Down Expand Up @@ -751,7 +751,7 @@
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~18"
"value": "~20"
},
{
"name": "FUNCTION_APP_EDIT_MODE",
Expand Down
6 changes: 3 additions & 3 deletions BlockBlobReader/src/blobreaderdeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~18"
"value": "~20"
},
{
"name": "Project",
Expand Down Expand Up @@ -505,7 +505,7 @@
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~18"
"value": "~20"
},
{
"name": "FUNCTION_APP_EDIT_MODE",
Expand Down Expand Up @@ -596,7 +596,7 @@
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~18"
"value": "~20"
},
{
"name": "FUNCTION_APP_EDIT_MODE",
Expand Down
6 changes: 3 additions & 3 deletions BlockBlobReader/src/blobreaderdeploywithPremiumPlan.json
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~18"
"value": "~20"
},
{
"name": "Project",
Expand Down Expand Up @@ -503,7 +503,7 @@
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~18"
"value": "~20"
},
{
"name": "FUNCTION_APP_EDIT_MODE",
Expand Down Expand Up @@ -594,7 +594,7 @@
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~18"
"value": "~20"
},
{
"name": "FUNCTION_APP_EDIT_MODE",
Expand Down
6 changes: 3 additions & 3 deletions BlockBlobReader/src/blobreaderzipdeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~18"
"value": "~20"
},
{
"name": "Project",
Expand Down Expand Up @@ -491,7 +491,7 @@
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~18"
"value": "~20"
},
{
"name": "WEBSITE_RUN_FROM_PACKAGE",
Expand Down Expand Up @@ -580,7 +580,7 @@
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~18"
"value": "~20"
},
{
"name": "WEBSITE_RUN_FROM_PACKAGE",
Expand Down
2 changes: 1 addition & 1 deletion EventHubs/src/azuredeploy_metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~18"
"value": "~20"
},
{
"name": "Project",
Expand Down
18 changes: 8 additions & 10 deletions deletetestresourcegroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
from sumologic import SumoLogic

config = {
"AZURE_SUBSCRIPTION_ID": "",
"AZURE_CLIENT_ID": "",
"AZURE_CLIENT_SECRET": "",
"AZURE_TENANT_ID": "",
"AZURE_DEFAULT_REGION": "",
"SUMO_ACCESS_ID": "",
"SUMO_ACCESS_KEY": "",
"SUMO_DEPLOYMENT": "us1"
"AZURE_SUBSCRIPTION_ID": os.environ.get("AZURE_SUBSCRIPTION_ID"),
"AZURE_CLIENT_ID": os.environ.get("AZURE_CLIENT_ID"),
"AZURE_CLIENT_SECRET": os.environ.get("AZURE_CLIENT_SECRET"),
"AZURE_TENANT_ID": os.environ.get("AZURE_TENANT_ID"),
"AZURE_DEFAULT_REGION": os.environ.get("AZURE_DEFAULT_REGION"),
"SUMO_ACCESS_ID": os.environ.get("SUMO_ACCESS_ID"),
"SUMO_ACCESS_KEY": os.environ.get("SUMO_ACCESS_KEY"),
"SUMO_DEPLOYMENT": os.environ.get("SUMO_DEPLOYMENT")
}

# config_file = os.path.expanduser("~/.azure/azure_credentials.json")
Expand All @@ -27,8 +27,6 @@
)
location = str(config['AZURE_DEFAULT_REGION'])

print("creating credentials", subscription_id)

resource_client = ResourceManagementClient(credentials, subscription_id)


Expand Down
10 changes: 10 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import globals from "globals";
import pluginJs from "@eslint/js";


/** @type {import('eslint').Linter.Config[]} */
export default [
{files: ["**/*.js"], languageOptions: {sourceType: "commonjs"}},
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
];
Loading