Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 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
58 changes: 29 additions & 29 deletions .github/workflows/pr-gated.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: Gated pull request
on:
workflow_dispatch:
pull_request:
branches: [ main ]
workflow_dispatch:
pull_request:
branches: [main]

jobs:
build-and-test:
runs-on: windows-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: "16.14"
- run: node -v
- run: npm ci
- run: npm run audit
- run: npm run test:unit-test
- run: npm run vsix
- name: retry 5 times e2e test cases
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 5
command: npm run test:e2e
- name: upload VSIX to artifactory
uses: actions/upload-artifact@v3
with:
name: vsix-artifact
path: |
*.vsix
build-and-test:
runs-on: windows-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: "18.19"
- run: node -v
- run: npm ci
- run: npm run audit
- run: npm run test:unit-test
- run: npm run vsix
- name: retry 5 times e2e test cases
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 5
command: npm run test:e2e
- name: upload VSIX to artifactory
uses: actions/upload-artifact@v3
with:
name: vsix-artifact
path: |
*.vsix
180 changes: 90 additions & 90 deletions .github/workflows/rc.yml
Original file line number Diff line number Diff line change
@@ -1,94 +1,94 @@
name: Release candidate
on:
workflow_dispatch:
push:
branches: [ main ]
tags:
- "v*"
workflow_dispatch:
push:
branches: [main]
tags:
- "v*"

jobs:
build-and-test:
strategy:
matrix:
include:
- os: windows-latest
platform: win32
arch: x64
npm_config_arch: x64
# - os: windows-latest
# platform: win32
# arch: ia32
# npm_config_arch: ia32
- os: windows-latest
platform: win32
arch: arm64
npm_config_arch: arm
# - os: ubuntu-latest
# platform: linux
# arch: x64
# npm_config_arch: x64
# - os: ubuntu-latest
# platform: linux
# arch: arm64
# npm_config_arch: arm64
# - os: ubuntu-latest
# platform: linux
# arch: armhf
# npm_config_arch: arm
# - os: ubuntu-latest
# platform: alpine
# arch: x64
# npm_config_arch: x64
# - os: macos-latest
# platform: darwin
# arch: x64
# npm_config_arch: x64
# - os: macos-latest
# platform: darwin
# arch: arm64
# npm_config_arch: arm64
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: "16.14"
- run: node -v
- run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# there were no target related nodejs codes released to the extensions
# thus do not set the npm_config_arch
# npm_config_arch: ${{ matrix.npm_config_arch }}
- shell: pwsh
run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_ENV
- run: npm run audit
- run: npm run test:unit-test
- run: npx vsce package --target ${{ env.target }}
- name: retry 5 times e2e test cases
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 5
command: npm run test:e2e
- name: upload VSIX to artifactory
uses: actions/upload-artifact@v3
with:
name: ${{ env.target }}
path: |
*.vsix
touch-ado:
runs-on: ubuntu-latest
needs: build-and-test
if: success()
steps:
- uses: actions/download-artifact@v3
- run: echo $(find . -iname *.vsix)
- uses: Azure/[email protected]
with:
azure-devops-project-url: 'https://dev.azure.com/powerbi/Power%20Query'
azure-pipeline-name: 'PowerQuerySdkTools-VSCode-ToolsOfficial' # name of the Azure pipeline to be triggered
azure-devops-token: '${{ secrets.PBI_PAT }}'
azure-pipeline-variables: '{"GITHUB_BRANCH_REF": "${{ github.ref }}"}' # optional stringified json
build-and-test:
strategy:
matrix:
include:
- os: windows-latest
platform: win32
arch: x64
npm_config_arch: x64
# - os: windows-latest
# platform: win32
# arch: ia32
# npm_config_arch: ia32
- os: windows-latest
platform: win32
arch: arm64
npm_config_arch: arm
# - os: ubuntu-latest
# platform: linux
# arch: x64
# npm_config_arch: x64
# - os: ubuntu-latest
# platform: linux
# arch: arm64
# npm_config_arch: arm64
# - os: ubuntu-latest
# platform: linux
# arch: armhf
# npm_config_arch: arm
# - os: ubuntu-latest
# platform: alpine
# arch: x64
# npm_config_arch: x64
# - os: macos-latest
# platform: darwin
# arch: x64
# npm_config_arch: x64
# - os: macos-latest
# platform: darwin
# arch: arm64
# npm_config_arch: arm64
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: "18.19"
- run: node -v
- run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# there were no target related nodejs codes released to the extensions
# thus do not set the npm_config_arch
# npm_config_arch: ${{ matrix.npm_config_arch }}
- shell: pwsh
run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_ENV
- run: npm run audit
- run: npm run test:unit-test
- run: npx vsce package --target ${{ env.target }}
- name: retry 5 times e2e test cases
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 5
command: npm run test:e2e
- name: upload VSIX to artifactory
uses: actions/upload-artifact@v3
with:
name: ${{ env.target }}
path: |
*.vsix
touch-ado:
runs-on: ubuntu-latest
needs: build-and-test
if: success()
steps:
- uses: actions/download-artifact@v3
- run: echo $(find . -iname *.vsix)
- uses: Azure/[email protected]
with:
azure-devops-project-url: "https://dev.azure.com/powerbi/Power%20Query"
azure-pipeline-name: "PowerQuerySdkTools-VSCode-ToolsOfficial" # name of the Azure pipeline to be triggered
azure-devops-token: "${{ secrets.PBI_PAT }}"
azure-pipeline-variables: '{"GITHUB_BRANCH_REF": "${{ github.ref }}"}' # optional stringified json
2 changes: 1 addition & 1 deletion .pipelines/pr-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ variables:
steps:
- task: NodeTool@0
inputs:
versionSpec: "16.x"
versionSpec: "18.x"
displayName: "Install Node.js"

- task: Npm@1
Expand Down
12 changes: 12 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug current .ts file",
"runtimeArgs": [
"-r",
"ts-node/register"
],
"args": [
"${file}"
],
},
{
"name": "Run Extension",
"type": "extensionHost",
Expand Down
Loading