Skip to content

Commit

Permalink
Add release workflow (#42)
Browse files Browse the repository at this point in the history
Added release automation workflow and unit tests for scripts
  • Loading branch information
kerenr-jfrog committed Oct 9, 2024
1 parent ddf7311 commit f0d6a56
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 53 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ on:
jobs:

pre-build:
name: Update version in source code
runs-on: windows-latest
env:
NEW_VERSION: '${{ github.ref_name }}'
MANIFEST_FILE_PATH: "JfrogVSExtension/source.extension.vsixmanifest"

steps:
- name: Config Github
Expand All @@ -34,6 +36,8 @@ jobs:

- name: Commit and push changes
run: |
git config --local user.name "${{ github.actor }}"
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git add .
git commit -m "Updated VSIX version to ${{ env.NEW_VERSION }}"
git push
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Run Tests
on:
push:
pull_request:
type: [ labeled ]
type: [ labeled ]

jobs:
call-build-workflow:
Expand Down Expand Up @@ -37,4 +37,3 @@ jobs:
# run tests in release mode with logs presentation
- name: Run MSTest Project
run: dotnet test --no-build --configuration Release --logger "console;verbosity=detailed" ./UnitTestJfrogVSExtension/bin/Release/UnitTestJfrogVSExtension.dll

33 changes: 0 additions & 33 deletions JFrogVSExtension/Resources/DownloadJfrogCli.ps1

This file was deleted.

18 changes: 0 additions & 18 deletions UnitTestJfrogVSExtension/UnitTest1.cs

This file was deleted.

0 comments on commit f0d6a56

Please sign in to comment.