chore(cli): replace tets by vitest #153
  
    
      This file contains hidden or 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 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set Environment Variables | |
| uses: tw3lveparsecs/[email protected] | |
| with: | |
| envFilePath: ./envvars.for.actions | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| 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 | |
| npm run clean | |
| 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@v4 | |
| with: | |
| name: smelly-test-vscode-extension | |
| path: ./vscode/*.vsix |