Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/add_closed_at_field.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Update closed_at issue field
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- uses: monry/actions-get-project-item-id@v2
with:
github-token: ${{ secrets.UUI_CI_SECRET }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/add_created_at_field.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Update created_at issue field
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- uses: monry/actions-get-project-item-id@v2
with:
github-token: ${{ secrets.UUI_CI_SECRET }}
Expand Down
49 changes: 24 additions & 25 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ on:
image-name:
required: true
type: string
git-version-mode:
required: true
type: string
env:
required: true
type: string
Expand Down Expand Up @@ -53,12 +50,12 @@ jobs:
VALUES_FILE: ${{ inputs.values-file }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
with:
node-version: '20.x'
node-version: '22.x'
cache: 'yarn'
cache-dependency-path: |
**/yarn.lock
Expand All @@ -80,23 +77,23 @@ jobs:

- name: Authenticate to Cloud
id: auth
uses: 'google-github-actions/auth@v2'
uses: 'google-github-actions/auth@v3'
with:
token_format: access_token
project_id: ${{ secrets.PROJECT_ID }}
workload_identity_provider: ${{ secrets.WFI_PROVIDER }}
service_account: ${{ secrets.WFI_SA }}

- name: Login to artifactory
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ${{ secrets.ARTIFACTORY_REGISTRY_URL }}
username: ${{ secrets.ARTIFACTORY_AUTH2_USER }}
password: ${{ steps.auth.outputs.access_token }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v6
with:
# list of Docker images to use as base name for tags
images: |
Expand All @@ -107,38 +104,37 @@ jobs:
type=sha

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v4

- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v7
with:
context: ./
file: ./Dockerfile
push: true
# Image will be tagged with all tags from "Docker meta" step
tags: ${{ steps.meta.outputs.tags }}

# install Gitversion to obtain semver version
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.15
with:
versionSpec: '5.8.3'
# need to updated
- name: Version determination
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.15
with:
additionalArguments: ${{ inputs.git-version-mode }}
useConfigFile: true
configFilePath: GitVersion.yml
- name: Determine version
id: version
run: |
SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
LATEST_TAG=$(git tag --sort=-version:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -1)
MAJOR=$(echo $LATEST_TAG | sed 's/^v//' | cut -d. -f1)
MINOR=$(echo $LATEST_TAG | sed 's/^v//' | cut -d. -f2)
echo "shortSha=${SHORT_SHA}" >> $GITHUB_OUTPUT
echo "major=${MAJOR}" >> $GITHUB_OUTPUT
echo "minor=${MINOR}" >> $GITHUB_OUTPUT

- name: Install Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v5
with:
version: v3.8.0

- name: Preparation and Helm chart packaging
env:
GITVERSION_SHORTSHA: ${{ steps.version.outputs.shortSha }}
run: |
echo ${{ steps.auth.outputs.access_token }} | helm registry login ${{ secrets.ARTIFACTORY_REGISTRY_URL }} --username ${{ secrets.ARTIFACTORY_AUTH2_USER }} --password-stdin
mkdir helmchart && cd ./helmchart # helm cannot untar file to the repo with the same name as a package. To avoid error we create temp folder
Expand All @@ -147,6 +143,9 @@ jobs:
sed -i -e "s/tag: latest/tag: sha-${GITVERSION_SHORTSHA}/g" ${{ secrets.BASE_HELMCHART_NAME }}/${VALUES_FILE}

- name: Packaging and Uploading Helm Chart
env:
GITVERSION_MAJOR: ${{ steps.version.outputs.major }}
GITVERSION_MINOR: ${{ steps.version.outputs.minor }}
run: |
cd ./helmchart
# workaround to avoid Helm chart versioning issues
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ jobs:
values-file: values.dev.yaml
# TODO: After migrating prod environment we can use the same image name for prod and non-prod
image-name: ui-dev
git-version-mode: ''
env: 'dev'
6 changes: 3 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
runs-on: ubuntu-24.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: '20.x'
node-version: '22.x'
cache: 'yarn'
cache-dependency-path: |
**/yarn.lock
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ jobs:
values-file: values.prod.yaml
# TODO: After migrating prod environment we can use the same image name for prod and non-prod
image-name: ui
git-version-mode: ''
env: 'prod'
1 change: 0 additions & 1 deletion .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ jobs:
values-file: values.qa.yaml
# TODO: After migrating prod environment we can use the same image name for prod and non-prod
image-name: ui-qa
git-version-mode: ''
env: 'qa'
8 changes: 4 additions & 4 deletions .github/workflows/qualityGate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ jobs:
# By default, it checks out the "merge-commit" for "pull_request" events (https://github.com/actions/checkout)
# I.e. the result of merging source branch to the target branch will be checked out.
- name: 'Checkout the "merge commit" branch'
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
path: ${{ env.MERGE_COMMIT_BRANCH_DIR }}

# Checkout the TARGET branch.
- name: 'Checkout "target" branch'
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.base.ref }}
repository: ${{ github.event.pull_request.base.repo.full_name }}
path: ${{ env.TARGET_BRANCH_DIR }}

- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
with:
node-version: '20.x'
node-version: '22.x'
cache: 'yarn'
cache-dependency-path: |
${{ env.TARGET_BRANCH_DIR }}/yarn.lock
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/qualityGateCommentPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ jobs:
# Update comment: track-bundle-size
#
- id: prevCommentId
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
with:
issue-number: ${{ steps.readPrNumber.outputs.result }}
comment-author: '${{env.COMMENT_AUTHOR}}'
body-includes: '${{env.COMMENT_TAG}}'
- uses: peter-evans/create-or-update-comment@v3
- uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ steps.prevCommentId.outputs.comment-id }}
issue-number: ${{ steps.readPrNumber.outputs.result }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
# No need to run this job on "pull_request" from main UUI repo, because it's guaranteed it's already run on "push" event.
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'epam/UUI' || github.event_name == 'push'
runs-on: ubuntu-latest
container: node:18
container: node:22

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: '20.x'
node-version: '22.x'
cache: 'yarn'
cache-dependency-path: |
**/yarn.lock
Expand Down
47 changes: 0 additions & 47 deletions GitVersion.yml

This file was deleted.

Loading