Skip to content

Commit

Permalink
Update api to 5.9.0 (microsoft#24)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
kullJul and kullJul authored Apr 3, 2024
1 parent 9d14b10 commit 7cf5ff0
Show file tree
Hide file tree
Showing 10 changed files with 2,939 additions and 56 deletions.
9 changes: 9 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
dist
coverage
test
.eslintrc.js
karma.conf.ts
webpack.config.js
lib
.tmp
20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
env: {
"browser": true,
"es6": true,
"es2017": true
},
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
tsconfigRootDir: ".",
},
plugins: [
"powerbi-visuals"
],
extends: [
"plugin:powerbi-visuals/recommended"
],
rules: {}
};
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will do a clean installation 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: build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm audit
continue-on-error: true
- run: npm ci
- run: npm outdated
continue-on-error: true
- run: npm run lint
env:
CI: true
49 changes: 49 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "CodeQL"

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 0 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ['typescript']

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18.x

- name: Install Dependencies
run: npm ci

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 6.0.2
* Update powerbi-visuals-api to 5.9.0
* Add build.yml and codeql-analysis.yml

## 6.0.1
* Update powerbi-visuals-api to 5.7.0

Expand Down
Loading

0 comments on commit 7cf5ff0

Please sign in to comment.