fix(vscode): app insights #100
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration Workflow | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
on: [push] | ||
env: | ||
CI: true | ||
DISPLAY: ':99.0' | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }} | ||
COVERALLS_GIT_BRANCH: master | ||
APPLICATIONINSIGHTS_CONNECTION_STRING: ${{ secret.APPLICATIONINSIGHTS_CONNECTION_STRING }} | ||
Check failure on line 14 in .github/workflows/nodejs.yml GitHub Actions / Continuous Integration WorkflowInvalid workflow file
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set Environment Variables | ||
uses: tw3lveparsecs/github-actions-setvars@v0.1 | ||
with: | ||
envFilePath: ./envvars.for.actions | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
- name: export display | ||
run: | | ||
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | ||
echo ">>> Started xvfb" | ||
- name: npm install | ||
run: | | ||
npm i --workspaces | ||
npm run compile --workspaces | ||
- name: npm build | ||
run: | | ||
npm run vscode:prepublish --workspace=vscode | ||
- name: npm test | ||
if: github.ref != 'refs/heads/main' | ||
run: | | ||
npm run test --workspaces | ||
- name: npm coverage | ||
if: github.ref == 'refs/heads/main' | ||
#npm run coveralls --workspace=vscode | ||
run: | | ||
npm run test --workspaces | ||
- name: npm package standalone extension | ||
if: github.ref == 'refs/heads/main' | ||
run: | | ||
npm i -g vsce | ||
npm run generate:vsix --workspace=vscode | ||
- name: store artifact | ||
if: github.ref == 'refs/heads/main' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: smelly-test-vscode-extension | ||
path: ./vscode/*.vsix |