Skip to content

Commit

Permalink
- fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
tabakopavel committed Jul 20, 2023
1 parent 2b60d60 commit 59fd6cc
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 102 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI

on:
pull_request:
branches:
- dev
- master
- 'feature/**'
- 'release/**'
- 'hotfix/**'
types:
- opened
- synchronize
- edited

env:
PROFILE: release

jobs:
build:
runs-on: ubuntu-latest
concurrency: dev
steps:
- uses: actions/checkout@v3

- name: Cache cargo registry
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Configure AWS credentials ORG
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.ORG_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ORG_AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2

- name: Login to Amazon ECR ORG
id: login-ecr-org
uses: aws-actions/amazon-ecr-login@v1

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

- name: Build and push docker image to ECR Docker
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.tests
push: false
build-args: |
"ECR_REGISTRY=${{ steps.login-ecr-org.outputs.registry }}"
90 changes: 0 additions & 90 deletions .github/workflows/ci.yml

This file was deleted.

47 changes: 35 additions & 12 deletions .github/workflows/dev.yml → .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,40 @@ jobs:
tags: |
${{ steps.login-ecr.outputs.registry }}/pos-network-node:${{ github.sha }}
${{ steps.login-ecr.outputs.registry }}/pos-network-node:dev-${{ github.sha }}
${{ steps.login-ecr.outputs.registry }}/pos-network-node:dev-latest
# - name: Upload cere-runtime wasm artifact
# uses: actions/upload-artifact@v3
# with:
# name: cere_runtime.compact.compressed.${{ env.GITHUB_SHA }}.wasm
# path: target/${{ vars.PROFILE }}/wbuild/cere-runtime/cere_runtime.compact.compressed.wasm
#
# - name: Upload cere-dev-runtime wasm artifact
# uses: actions/upload-artifact@v3
# with:
# name: cere_dev_runtime.compact.compressed.${{ env.GITHUB_SHA }}.wasm
# path: target/${{ vars.PROFILE }}/wbuild/cere-dev-runtime/cere_dev_runtime.compact.compressed.wasm

# - name: Upload cere-runtime wasm artifact
# uses: actions/upload-artifact@v3
# with:
# name: cere_runtime.compact.compressed.${{ env.GITHUB_SHA }}.wasm
# path: target/${{ vars.PROFILE }}/wbuild/cere-runtime/cere_runtime.compact.compressed.wasm
#
# - name: Upload cere-dev-runtime wasm artifact
# uses: actions/upload-artifact@v3
# with:
# name: cere_dev_runtime.compact.compressed.${{ env.GITHUB_SHA }}.wasm
# path: target/${{ vars.PROFILE }}/wbuild/cere-dev-runtime/cere_dev_runtime.compact.compressed.wasm
trigger-e2e-tests:
runs-on: ubuntu-latest
needs: build
steps:
- name: 'Trigger e2e DDC tests'
uses: convictional/[email protected]
with:
owner: Cerebellum-Network
repo: ddc-api-e2e-simulations
github_token: ${{ secrets.GH_E2E_TOKEN }}
comment_github_token: ${{ secrets.GH_E2E_TOKEN }}
github_user: devops-cere
workflow_file_name: run-basic-ddc-tests.yml
client_payload: |-
{
"POS_NODE_VERSION": "${{ github.sha }}"
}
ref: master
wait_interval: 30
propagate_failure: true
trigger_workflow: true
wait_workflow: true
comment_downstream_url: ${{ github.event.pull_request.comments_url }}

0 comments on commit 59fd6cc

Please sign in to comment.