Skip to content

Commit 7cf5ff0

Browse files
authored
Update api to 5.9.0 (#24)
* Update api to 5.9.0 * Add codeql and build * Increment formattingmodel version * Add eslint * Fix eslint issues * Remove dev and certification branches from workflows --------- Co-authored-by: Iuliia Kulagina <v-ikulagina@microsoft.com>
1 parent 9d14b10 commit 7cf5ff0

10 files changed

Lines changed: 2939 additions & 56 deletions

.eslintignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
dist
3+
coverage
4+
test
5+
.eslintrc.js
6+
karma.conf.ts
7+
webpack.config.js
8+
lib
9+
.tmp

.eslintrc.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
env: {
3+
"browser": true,
4+
"es6": true,
5+
"es2017": true
6+
},
7+
root: true,
8+
parser: "@typescript-eslint/parser",
9+
parserOptions: {
10+
project: "tsconfig.json",
11+
tsconfigRootDir: ".",
12+
},
13+
plugins: [
14+
"powerbi-visuals"
15+
],
16+
extends: [
17+
"plugin:powerbi-visuals/recommended"
18+
],
19+
rules: {}
20+
};

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will do a clean installation of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: build
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [18.x, 20.x]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- run: npm audit
28+
continue-on-error: true
29+
- run: npm ci
30+
- run: npm outdated
31+
continue-on-error: true
32+
- run: npm run lint
33+
env:
34+
CI: true
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
- cron: '0 0 * * 3'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 60
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: ['typescript']
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 2
31+
32+
- name: Use Node.js 18
33+
uses: actions/setup-node@v2
34+
with:
35+
node-version: 18.x
36+
37+
- name: Install Dependencies
38+
run: npm ci
39+
40+
- name: Initialize CodeQL
41+
uses: github/codeql-action/init@v3
42+
with:
43+
languages: ${{ matrix.language }}
44+
45+
- name: Autobuild
46+
uses: github/codeql-action/autobuild@v3
47+
48+
- name: Perform CodeQL Analysis
49+
uses: github/codeql-action/analyze@v3

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 6.0.2
2+
* Update powerbi-visuals-api to 5.9.0
3+
* Add build.yml and codeql-analysis.yml
4+
15
## 6.0.1
26
* Update powerbi-visuals-api to 5.7.0
37

0 commit comments

Comments
 (0)