Skip to content

Commit

Permalink
Update workflow to 3.800.4
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegoO committed Mar 26, 2024
1 parent e374a5c commit f0d4818
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 35 deletions.
35 changes: 12 additions & 23 deletions .github/workflows/module-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# v3.200.35
# v3.800.4
# https://virtocommerce.atlassian.net/browse/VCST-488
name: Module CI

on:
Expand Down Expand Up @@ -56,13 +57,13 @@ jobs:

steps:

- name: Set up Node 18
uses: actions/setup-node@v3
- name: Set up Node 20
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Set up Java 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
Expand All @@ -72,7 +73,7 @@ jobs:
run: |
echo "RELEASE_STATUS=true" >> $GITHUB_ENV
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -127,7 +128,7 @@ jobs:
run: vc-build Compress -skip Clean+Restore+Compile+Test

- name: Publish Nuget
if: ${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master') && github.event_name != 'workflow_dispatch' }}
if: ${{ github.ref == 'refs/heads/master' }}
uses: VirtoCommerce/vc-github-actions/publish-nuget@master

- name: Publish to Blob
Expand Down Expand Up @@ -191,29 +192,17 @@ jobs:
fi
- name: Setup Git Credentials
if: ${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master') && github.event_name != 'workflow_dispatch' }}
if: ${{ (github.ref == 'refs/heads/dev' && github.event_name != 'workflow_dispatch') || github.ref == 'refs/heads/master' }}
uses: VirtoCommerce/vc-github-actions/setup-git-credentials-github@master
with:
githubToken: ${{ secrets.REPO_TOKEN }}

- name: Publish Manifest
if: ${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master') && github.event_name != 'workflow_dispatch' }}
if: ${{ (github.ref == 'refs/heads/dev' && github.event_name != 'workflow_dispatch') || github.ref == 'refs/heads/master' }}
uses: VirtoCommerce/vc-github-actions/publish-manifest@master
with:
packageUrl: ${{ steps.artifactUrl.outputs.download_url }}

- name: Update virtocommerce.com
if: ${{ github.ref == 'refs/heads/master' }}
uses: VirtoCommerce/vc-github-actions/update-virtocommercecom@master
with:
githubToken: ${{ secrets.REPO_TOKEN }}
login: ${{ secrets.VIRTOCOMMERCE_APP_ID }}
password: ${{ secrets.VIRTOCOMMERCE_SECRET }}
moduleId: ${{ steps.artifact_ver.outputs.moduleId }}
moduleDescription: ${{ steps.artifact_ver.outputs.moduleDescription }}
projectUrl: ${{ steps.artifact_ver.outputs.projectUrl }}
iconUrl: ${{ steps.artifact_ver.outputs.iconUrl }}

- name: Parse Jira Keys from All Commits
uses: VirtoCommerce/vc-github-actions/get-jira-keys@master
if: always()
Expand Down Expand Up @@ -252,7 +241,7 @@ jobs:
if: ${{ ((github.ref == 'refs/heads/dev') && (github.event_name == 'push') && (needs.ci.outputs.run-e2e == 'true')) ||
(github.event_name == 'workflow_dispatch')}}
needs: 'ci'
uses: VirtoCommerce/.github/.github/workflows/e2e.yml@v3.200.35
uses: VirtoCommerce/.github/.github/workflows/e2e.yml@v3.800.4
with:
katalonRepo: 'VirtoCommerce/vc-quality-gate-katalon'
katalonRepoBranch: 'dev'
Expand All @@ -272,7 +261,7 @@ jobs:
(github.ref == 'refs/heads/dev')) &&
github.event_name == 'push' }}
needs: ci
uses: VirtoCommerce/.github/.github/workflows/deploy-cloud.yml@v3.200.35
uses: VirtoCommerce/.github/.github/workflows/deploy-cloud.yml@v3.800.4
with:
releaseSource: module
moduleId: ${{ needs.ci.outputs.moduleId }}
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/module-release-hotfix.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# v3.200.35
# v3.800.4
# https://virtocommerce.atlassian.net/browse/VCST-488
name: Release hotfix

on:
Expand All @@ -12,12 +13,12 @@ on:

jobs:
test:
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.200.35
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.4
secrets:
sonarToken: ${{ secrets.SONAR_TOKEN }}

build:
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.200.35
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.4
with:
uploadPackage: 'true'
uploadDocker: 'false'
Expand All @@ -34,7 +35,7 @@ jobs:
changelog: ${{ steps.changelog.outputs.changelog }}
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -45,7 +46,7 @@ jobs:
publish-github-release:
needs:
[build, test, get-metadata]
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.200.35
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.800.4
with:
fullKey: ${{ needs.build.outputs.packageFullKey }}
changeLog: '${{ needs.get-metadata.outputs.changeLog }}'
Expand All @@ -62,7 +63,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install VirtoCommerce.GlobalTool
uses: VirtoCommerce/vc-github-actions/setup-vcbuild@master
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/publish-nugets.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# v3.200.35
# v3.800.4
# https://virtocommerce.atlassian.net/browse/VCST-488
name: Publish nuget

on:
Expand All @@ -12,12 +13,12 @@ on:

jobs:
test:
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.200.35
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.4
secrets:
sonarToken: ${{ secrets.SONAR_TOKEN }}

build:
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.200.35
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.4
with:
uploadPackage: 'true'
uploadDocker: 'false'
Expand All @@ -28,7 +29,7 @@ jobs:
publish-nuget:
needs:
[build, test]
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.200.35
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.800.4
with:
fullKey: ${{ needs.build.outputs.packageFullKey }}
forceGithub: false
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# v3.200.35
# v3.800.4
# https://virtocommerce.atlassian.net/browse/VCST-488
name: Release

on:
workflow_dispatch:

jobs:
release:
uses: VirtoCommerce/.github/.github/workflows/release.yml@v3.200.35
uses: VirtoCommerce/.github/.github/workflows/release.yml@v3.800.4
secrets:
envPAT: ${{ secrets.REPO_TOKEN }}

0 comments on commit f0d4818

Please sign in to comment.