-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (57 loc) · 1.66 KB
/
config.yml
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
name: "management-service-deployer"
on:
push:
branches:
- '**'
release:
types: [ published ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: setup-docker
uses: docker-practice/actions-setup-docker@master
- run: node --version
- run: npm --version
- run: docker --version
- run: python --version
- run: env
- name: Run npm install
run: npm install
- run: npm install --no-save tap-xunit
- name: spinning up ganache
run: npm run start:eth &
- run: mkdir -p _out/unit _out/e2e
- run: npm test -- --timeout=1m
- run: npm run build
build-and-release-to-staging:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: setup-docker
uses: docker-practice/actions-setup-docker@master
- run: ./boyar/create-version-file.sh
- name: Run npm install
run: npm install
- run: ./boyar/docker-build.sh
- name: release-to-docker-hub-staging
env:
DOCKER_HUB_IMAGE_PATH: orbsnetworkstaging/management-service
DOCKER_HUB_LOGIN: ${{ secrets.DOCKER_HUB_STAGING_LOGIN }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_STAGING_PASSWORD }}
run: ./.github/release-to-staging.sh