-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
30 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,6 @@ jobs: | |
with: | ||
version: ${{ steps.vsix_version.outputs.next-tag }} | ||
vsix-manifest-file: .\Snyk.VisualStudio.Extension\source.extension.vsixmanifest | ||
- name: Set VSIX version for 2022 | ||
uses: cezarypiatek/[email protected] | ||
with: | ||
version: ${{ steps.vsix_version.outputs.next-tag }} | ||
vsix-manifest-file: .\Snyk.VisualStudio.Extension.2022\source.extension.vsixmanifest | ||
- name: Check if secrets exist | ||
env: | ||
Secret: ${{ secrets.SNYK_CODE_API_ENDPOINT_URL }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,18 +5,14 @@ on: | |
|
||
env: | ||
SOLUTION_FILE_PATH: . | ||
DEFAULT_BRANCH: main | ||
DEFAULT_BRANCH: legacy-vs-extension | ||
|
||
jobs: | ||
build-project: | ||
uses: snyk/snyk-visual-studio-plugin/.github/workflows/build-project.yml@main | ||
uses: snyk/snyk-visual-studio-plugin/.github/workflows/build-project.yml@legacy-vs-extension | ||
with: | ||
solution-file-path: . | ||
secrets: inherit | ||
run-integration-tests: | ||
needs: build-project | ||
uses: snyk/snyk-visual-studio-plugin/.github/workflows/integration-tests.yml@main | ||
secrets: inherit | ||
run-unit-tests: | ||
needs: build-project | ||
name: Run Unit-Tests | ||
|
@@ -41,7 +37,7 @@ jobs: | |
- name: Tests | ||
run: vstest.console.exe **\*.Tests.dll /TestCaseFilter:"FullyQualifiedName!=Xunit.Instances.VisualStudio&integration!=true" #exclude integration tests and the psuedo-tests that launch a VS instance | ||
release: | ||
needs: [build-project, run-integration-tests, run-unit-tests] | ||
needs: [build-project, run-unit-tests] | ||
runs-on: windows-2022 | ||
defaults: | ||
run: | ||
|
@@ -89,26 +85,9 @@ jobs: | |
asset_name: Snyk_Vulnerability_Scanner-${{ needs.build-project.outputs.version }}.vsix | ||
asset_content_type: application/zip | ||
|
||
- name: Upload GitHub Release 2022 Asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: .\Snyk.VisualStudio.Extension.2022\bin\Release\Snyk.VisualStudio.Extension.vsix | ||
asset_name: Snyk_Vulnerability_Scanner-${{ needs.build-project.outputs.version }}-2022.vsix | ||
asset_content_type: application/zip | ||
|
||
- name: Publish 2015-2019 extension to Marketplace | ||
uses: cezarypiatek/[email protected] | ||
with: | ||
extension-file: '.\Snyk.VisualStudio.Extension\bin\Release\Snyk.VisualStudio.Extension.vsix' | ||
publish-manifest-file: '.\Snyk.VisualStudio.Extension\vs-publish.json' | ||
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }} | ||
|
||
- name: Publish 2022 extension to Marketplace | ||
uses: cezarypiatek/[email protected] | ||
with: | ||
extension-file: '.\Snyk.VisualStudio.Extension.2022\bin\Release\Snyk.VisualStudio.Extension.vsix' | ||
publish-manifest-file: '.\Snyk.VisualStudio.Extension.2022\vs-publish.json' | ||
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }} | ||
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }} |