fix the vscode badges in the readme (#279) #38
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: Test autoDocstring | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
unit_tests: | |
runs-on: "${{ matrix.os }}" | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
node: [16] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "${{ matrix.node-version }}" | |
cache: "npm" | |
- run: npm install | |
- run: npm run vscode:prepublish | |
- run: npm run unit_test | |
integration_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
cache: "npm" | |
- run: npm install | |
- run: npm run prepare_integration_tests | |
- uses: GabrielBB/xvfb-action@v1 | |
with: | |
options: -screen 0 1024x768x24 | |
run: npm run integration_test | |
publish: | |
needs: | |
- unit_tests | |
- integration_tests | |
if: startsWith(github.event.ref, 'refs/tags/v') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
cache: "npm" | |
- run: npm ci | |
- name: GitHub Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
generate_release_notes: true | |
body: | | |
# Summary | |
See [changelog](https://github.com/NilsJPWerner/autoDocstring/blob/master/CHANGELOG.md) | |
name: ${{ github.ref_name }} | |
fail_on_unmatched_files: true | |
- name: Publish to Visual Studio Marketplace | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} | |
registryUrl: https://marketplace.visualstudio.com |