Skip to content

Commit

Permalink
VCI-667: Add shell tests (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
krankenbro authored Aug 24, 2023
1 parent d91c70e commit d14c303
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
- 'docs/**'
- 'README.md'
- 'LICENSE'

jobs:
ci:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Get Image Version
uses: VirtoCommerce/vc-github-actions/get-image-version@master
id: image
with:
with:
projectType: "platform"
releaseBranch: "main"

Expand All @@ -65,14 +65,21 @@ jobs:
- name: Unit Tests
run: vc-build Test -skip

- name: Shelltest
shell: bash
working-directory: shelltests
run: |
sudo apt install shelltestrunner
shelltest .
- name: SonarCloud End
uses: VirtoCommerce/vc-github-actions/sonar-scanner-end@master

- name: Quality Gate
uses: VirtoCommerce/vc-github-actions/sonar-quality-gate@master
with:
login: ${{secrets.SONAR_TOKEN}}

- name: Publish Nuget
if: ${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') && github.event_name != 'workflow_dispatch' }}
uses: VirtoCommerce/vc-github-actions/publish-nuget@master
Expand All @@ -92,12 +99,12 @@ jobs:

- name: Upload Release Asset
if: ${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') && github.event_name != 'workflow_dispatch' }}
id: upload-release-asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: artifacts/VirtoCommerce.GlobalTool.${{ steps.image.outputs.shortVersion }}.nupkg
asset_name: VirtoCommerce.GlobalTool.${{ steps.image.outputs.shortVersion }}.nupkg
asset_content_type: application/zip
19 changes: 19 additions & 0 deletions shelltests/packages.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Install Bundle #4
vc-build install -stable -v 4
>>>2
>>>= 0

# Update to Bundle #5
vc-build update -v 4
>>>2
>>>= 0

# Update to the latest Bundle
vc-build update
>>>2
>>>= 0

# Update to the edge
vc-build update -edge
>>>2
>>>= 0

0 comments on commit d14c303

Please sign in to comment.