diff --git a/.github/workflows/vscode-extension-ci.yml b/.github/workflows/vscode-extension-ci.yml new file mode 100644 index 0000000000..de61e041fb --- /dev/null +++ b/.github/workflows/vscode-extension-ci.yml @@ -0,0 +1,28 @@ +name: "VSCode Extension - CI" + +on: + push: + branches: + - task/extension/branch-preview + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20.x + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.x + + - name: Install dependencies + run: npm i -g typescript @vscode/vsce + diff --git a/vscode/microsoft-kiota/.devcontainer/devcontainer.json b/vscode/microsoft-kiota/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..3718f680dd --- /dev/null +++ b/vscode/microsoft-kiota/.devcontainer/devcontainer.json @@ -0,0 +1,5 @@ +{ + "name": "VSCode Extension Dev Container", + "image": "mcr.microsoft.com/vscode/devcontainers/typescript-node:0-14", + "postCreateCommand": "cd vscode/microsoft-kiota && npm install && npx @vscode/vsce package && code --install-extension ./kiota-$(jq -r .version package.json).vsix" +} \ No newline at end of file