1- name : Release
2- on :
1+ name : " Main"
2+ on :
3+ pull_request :
4+ paths :
5+ - " build/**"
36 push :
4- branches :
7+ branches :
58 - master
9+ paths :
10+ - " build/**"
11+
612jobs :
713 unit-test :
814 runs-on : ubuntu-16.04
@@ -15,17 +21,15 @@ jobs:
1521 - name : Setup node
1622 uses : actions/setup-node@v1
1723 with :
18- node-version : ' 10.x'
19- - name : yarn install
20- run : yarn install
24+ node-version : " 10.x"
25+ - run : yarn install
2126 working-directory : ${{ env.working-directory }}
22- - name : yarn lint
23- run : yarn lint
27+ - run : yarn lint
2428 working-directory : ${{ env.working-directory }}
25- - name : yarn test
26- run : yarn test
27- working-directory : ${{ env.working-directory }}
28- it -test :
29+ - run : yarn test
30+ working-directory : ${{ env.working-directory }}
31+
32+ integration -test :
2933 runs-on : ubuntu-16.04
3034 env :
3135 working-directory : ./build/src
@@ -36,17 +40,25 @@ jobs:
3640 - name : Setup node
3741 uses : actions/setup-node@v1
3842 with :
39- node-version : ' 10.x'
40- - name : yarn install
41- run : yarn install
43+ node-version : " 10.x"
44+ - run : yarn install
4245 working-directory : ${{ env.working-directory }}
43- - name : yarn test:int
44- run : yarn test:int
46+ - run : yarn test:int
4547 working-directory : ${{ env.working-directory }}
48+
49+ build-test :
50+ runs-on : ubuntu-16.04
51+ name : Build test
52+ steps :
53+ - name : Checkout
54+ uses : actions/checkout@v2
55+ - run : docker-compose build
56+
4657 release :
4758 name : Release
4859 runs-on : ubuntu-latest
49- needs : [unit-test,it-test]
60+ needs : [unit-test, integration-test]
61+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
5062 env :
5163 TRAVIS : yes
5264 GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
5567 - name : Setup node
5668 uses : actions/setup-node@v1
5769 with :
58- node-version : ' 10.x'
59- - name : dappnodesdk install
60- run : npm install -g @dappnode/dappnodesdk
61- - name : Docker-Compose Build
62- run : docker-compose build
63- - name : publish
70+ node-version : " 10.x"
71+ - run : npm install -g @dappnode/dappnodesdk
72+ - run : docker-compose build
73+ - name : Publish
6474 run : dappnodesdk publish patch --dappnode_team_preset --provider infura
0 commit comments