forked from hyperledger/indy-node
-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (94 loc) · 3.46 KB
/
indy-besu-push.yaml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Indy Besu - Push vdr or contract changes Workflow
on:
push:
branches: [ "indy-besu-ci" ]
pull_request:
types:
- opened
- edited
- closed
- reopened
- synchronize
# paths:
# - 'indy-besu/smart_contracts/**'
# - '.github/**'
workflow_dispatch:
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
workflow-setup:
name: Initialize Workflow
runs-on: ubuntu-latest
outputs:
CACHE_KEY_BUILD: ${{ steps.setup.outputs.CACHE_KEY_BUILD }}
UBUNTU_VERSION: ${{ steps.setup.outputs.UBUNTU_VERSION }}
# Expose the lowercase version of the GitHub repository name
# to all subsequent jobs that reference image repositories
# as the push and pull operations require the URL of the repository
# to be in lowercase.
GITHUB_REPOSITORY_NAME: ${{ steps.setup.outputs.GITHUB_REPOSITORY_NAME }}
distribution: ${{ steps.setup.outputs.distribution }}
publish: ${{ steps.setup.outputs.publish }}
steps:
- name: checkout source code
uses: actions/checkout@v3
lint:
name: Lint
run: yarn ts-lint && yarn solhint
# tests:
#
#
# build-image:
# name: Create Builder Image
# needs: [workflow-setup, lint]
# uses: hyperledger/indy-shared-gha/.github/workflows/buildimage.yaml@v1
# with:
# CACHE_KEY_BUILD: ${{ needs.workflow-setup.outputs.CACHE_KEY_BUILD }}
# DOCKER_IMAGE: ghcr.io/${{ needs.workflow-setup.outputs.GITHUB_REPOSITORY_NAME }}/node-build
# UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }}
#
# build_packages:
# name: Build Packages
# needs: [workflow-setup, build-image]
# uses: hyperledger/indy-shared-gha/.github/workflows/buildpackages.yaml@v1
# with:
# DOCKER_IMAGE: ghcr.io/${{ needs.workflow-setup.outputs.GITHUB_REPOSITORY_NAME }}/node-build:${{ needs.workflow-setup.outputs.UBUNTU_VERSION }}
# UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }}
# isDev: true
# isRC: false
# moduleName: indy_node
#
# indy_node_tests:
# name: Indy Node Tests
# needs: [workflow-setup, build_packages]
# uses: ./.github/workflows/reuseable_test.yaml
# with:
# GITHUB_REPOSITORY_NAME: ${{ needs.workflow-setup.outputs.GITHUB_REPOSITORY_NAME }}
# UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }}
#
# publish_artifacts:
# name: Publish Artifacts
# needs: [workflow-setup, indy_node_tests]
# if: needs.workflow-setup.outputs.publish == 'true'
# uses: hyperledger/indy-shared-gha/.github/workflows/publish_artifacts.yaml@v1
# with:
# COMPONENT: 'dev'
# UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }}
# distribution: ${{ needs.workflow-setup.outputs.distribution }}
# moduleName: indy_node
# secrets:
# INDY_ARTIFACTORY_REPO_CONFIG: ${{ secrets.INDY_ARTIFACTORY_REPO_CONFIG }}
# PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}