-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b60d60
commit 59fd6cc
Showing
3 changed files
with
93 additions
and
102 deletions.
There are no files selected for viewing
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
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 }}" |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |