This repository was archived by the owner on Mar 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 88
78 lines (72 loc) · 2.46 KB
/
echo-python-dapp.yml
File metadata and controls
78 lines (72 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# yaml-language-server: =https://json.schemastore.org/github-workflow.json
---
name: "Build echo-python DApp"
on:
workflow_dispatch:
pull_request:
paths:
- "docker/**"
- "docker-compose*.yml"
- "base.hcl"
- ".github/workflows/dapp-build.yml"
- ".github/workflows/echo-python-dapp.yml"
- "echo-python/**"
- "!**/*.md"
- "frontend-console/**"
- "integration-tests/**"
push:
tags:
- v*
branches:
- develop
jobs:
build:
uses: ./.github/workflows/dapp-build.yml
with:
dapp-name: echo-python
secrets: inherit
test:
needs: build
runs-on: ubuntu-20.04
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.CI_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests
env:
DAPP_IMAGE: ${{ needs.build.outputs.dapp-image }}
run: |
yarn install
yarn test:ci echo-python --verbose
working-directory: ./integration-tests/
- name: Save docker logs
if: always()
run: |
yarn saveLogs echo-python hardhat
yarn saveLogs echo-python dispatcher
yarn saveLogs echo-python state_server
yarn saveLogs echo-python server_manager
yarn saveLogs echo-python inspect_server
yarn saveLogs echo-python indexer
yarn saveLogs echo-python graphql_server
yarn saveLogs echo-python database
yarn saveLogs echo-python advance_runner
working-directory: ./integration-tests
- name: Upload docker logs
if: always()
uses: actions/upload-artifact@master
with:
name: echo-python-test-logs
path: ./integration-tests/logs/