DOMA-8614 News Item Sharing getRecipients proxy function #22353
Workflow file for this run
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
name: RUN CONDO TESTS | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
DOCKER_IMAGE_FULL: swr.ru-moscow-1.hc.sbercloud.ru/condo/condo-tests-image:${{ github.sha }} | |
jobs: | |
build-image: | |
runs-on: runners-dind-set-cpu5-ram10 | |
outputs: | |
DOCKER_IMAGE_FULL: ${{ env.DOCKER_IMAGE_FULL }} | |
steps: | |
- name: install deps | |
run: | | |
sudo apt update && sudo apt install -y git | |
- name: checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
ssh-key: ${{ secrets.SSH_DOCK_SERVER_PRIVATE_KEY }} | |
- name: setup docker context for buildx | |
id: buildx-context | |
run: | | |
docker context create builders | |
- name: setup docker buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
endpoint: builders | |
- name: login to sbercloud registry | |
uses: docker/login-action@v3 | |
with: | |
registry: swr.ru-moscow-1.hc.sbercloud.ru | |
username: ${{ secrets.SBERCLOUD_CR_USERNAME }} | |
password: ${{ secrets.SBERCLOUD_CR_PASSWORD }} | |
# - name: cache yarn packages | |
# uses: actions/cache@v3 | |
# with: | |
# path: yarn-cache | |
# key: yarn-packages-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
# restore-keys: | | |
# yarn-packages-${{ runner.os }}- | |
# - name: inject yarn cache into docker | |
# uses: reproducible-containers/[email protected] | |
# with: | |
# cache-source: yarn-cache | |
# cache-target: /root/.yarn/cache | |
- name: build condo image for tests and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: condo.tests.Dockerfile | |
push: true | |
tags: ${{ env.DOCKER_IMAGE_FULL }} | |
provenance: false | |
cache-from: type=registry,ref=swr.ru-moscow-1.hc.sbercloud.ru/condo/condo-tests-image:buildcache | |
cache-to: type=registry,ref=swr.ru-moscow-1.hc.sbercloud.ru/condo/condo-tests-image:buildcache,mode=max,image-manifest=true | |
domains-tests-job: | |
needs: build-image | |
strategy: | |
matrix: | |
domain: | |
- organization | |
- user | |
- scope | |
- property | |
- acquiring | |
- billing | |
- miniapp | |
- banking | |
- ticket | |
- meter | |
- contact | |
- resident | |
- notification | |
- common | |
- others | |
uses: ./.github/workflows/_nodejs.condo.core.tests.yml | |
with: | |
domain_name: ${{ matrix.domain }} | |
image: ${{ needs.build-image.outputs.DOCKER_IMAGE_FULL }} | |
registry: swr.ru-moscow-1.hc.sbercloud.ru | |
runs-on: runners-dind-set-cpu5-ram10 | |
secrets: inherit |