forked from Azure/azure-resource-manager-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2003 from Azure/ant/linters
Add linter validation
- Loading branch information
Showing
46 changed files
with
2,317 additions
and
92 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,19 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
- package-ecosystem: "npm" | ||
directory: "/generator" | ||
schedule: | ||
interval: "monthly" | ||
- package-ecosystem: "npm" | ||
directory: "/tools" | ||
schedule: | ||
interval: "monthly" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ on: | |
pull_request: | ||
branches: [ main ] | ||
jobs: | ||
build: | ||
schema-tests: | ||
name: Schema Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -21,6 +22,10 @@ jobs: | |
- name: Install NPM modules | ||
run: npm ci | ||
working-directory: ./tools | ||
|
||
- name: Lint | ||
run: npm run lint | ||
working-directory: ./tools | ||
|
||
- name: Run CI tests | ||
run: npm test | ||
|
@@ -30,9 +35,33 @@ jobs: | |
run: dotnet test DeploymentsSchemaTests/DeploymentsSchemaTests.csproj | ||
working-directory: ./tools | ||
|
||
build-generator: | ||
name: Build Generator | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 14.x | ||
|
||
- name: Install | ||
run: npm ci | ||
working-directory: ./generator | ||
|
||
- name: Lint | ||
run: npm run lint | ||
working-directory: ./generator | ||
|
||
- name: Build | ||
run: npm run build | ||
working-directory: ./generator | ||
|
||
automerge: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
needs: schema-tests | ||
env: | ||
PR_PREFIX: sdkAuto/ | ||
if: ${{ github.event.pull_request.user.login == 'openapi-sdkautomation[bot]' }} | ||
|
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ Debug | |
Release | ||
obj | ||
bin | ||
out | ||
|
||
# Temporary directory for GitHub workflows to use | ||
/workflow-temp |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
module.exports = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: "module", | ||
}, | ||
plugins: ["header"], | ||
extends: ["eslint:recommended"], | ||
ignorePatterns: ["/out/**/*"], | ||
rules: { | ||
"header/header": [ | ||
2, | ||
"line", | ||
[ | ||
" Copyright (c) Microsoft Corporation.", | ||
" Licensed under the MIT License.", | ||
], | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.ts"], | ||
extends: [ | ||
"plugin:@typescript-eslint/recommended", | ||
], | ||
rules: { | ||
}, | ||
}, | ||
{ | ||
files: ["*.js"], | ||
env: { node: true }, | ||
}, | ||
], | ||
}; |
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
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
Oops, something went wrong.