Skip to content
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

WIP: try to run analyzer on PR as well? #2714

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/template-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/template-warnings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Template Warnings

on:
pull_request:
push:
branches: master

jobs:
validate:

runs-on: ubuntu-latest
defaults:
run:
working-directory: ./scripts

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v4

- name: Get changed files
id: changed-workbook-files
uses: tj-actions/changed-files@v44
# To compare changes between the current commit and the last pushed remote commit set `since_last_remote_commit: true`. e.g
with:
# since_last_remote_commit: true
files: |
**.workbook
- name: Use Node.js ${{ matrix.node-version }}
if: steps.changed-workbook-files.outputs.any_changed == 'true'
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run analyze '${{ steps.changed-workbook-files.outputs.all_changed_files }}'
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": "Notebook/1.0",
"items": [
{
"id": "84cd454f-b852-4bbb-ae4f-6080b3801855",
"type": 1,
"name": "text - 0",
"content": {
"json": "# say cheese!\r\n\r\n<span style=\"font-size:384px\">🧀</span>"
}
},
{
"id": "9c56155c-9a7e-41db-ac56-40cabb7d7ddf",
"version": "KqlParameterItem/1.0",
"name": "TopN",
"type": 1,
"isRequired": true,
"query": "print 5",
"crossComponentResources": [
"{Subscriptions}"
],
"queryType": 0,
"resourceType": "microsoft.resources/subscriptions"
}
]
}
3 changes: 0 additions & 3 deletions scripts/.npmrc

This file was deleted.

149 changes: 0 additions & 149 deletions scripts/package-lock.json

This file was deleted.

Loading