forked from cerc-io/ipld-eth-server
Update on-pr.yaml
This commit is contained in:
parent
2fa941f084
commit
6fa38fd198
6
.github/workflows/on-pr.yaml
vendored
6
.github/workflows/on-pr.yaml
vendored
@ -1,7 +1,6 @@
|
|||||||
name: Docker Build
|
name: Docker Build
|
||||||
|
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# build:
|
# build:
|
||||||
# name: Run docker build
|
# name: Run docker build
|
||||||
@ -14,6 +13,7 @@ jobs:
|
|||||||
name: Run unit tests
|
name: Run unit tests
|
||||||
env:
|
env:
|
||||||
GOPATH: /tmp/go
|
GOPATH: /tmp/go
|
||||||
|
# To run the unit tests you need to add secrets to your repository.
|
||||||
BUILD_HOSTNAME: ${{ secrets.BUILD_HOSTNAME }}
|
BUILD_HOSTNAME: ${{ secrets.BUILD_HOSTNAME }}
|
||||||
BUILD_USERNAME: ${{ secrets.BUILD_USERNAME }}
|
BUILD_USERNAME: ${{ secrets.BUILD_USERNAME }}
|
||||||
BUILD_KEY: ${{ secrets.BUILD_KEY }}
|
BUILD_KEY: ${{ secrets.BUILD_KEY }}
|
||||||
@ -49,12 +49,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Get the logs and cat them
|
- name: Get the logs and cat them
|
||||||
run: |
|
run: |
|
||||||
scp -o 'StrictHostKeyChecking no' -i /tmp/key {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/test.log .
|
scp -o 'StrictHostKeyChecking no' -i /tmp/key ${{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/test.log .
|
||||||
cat ./test.log
|
cat ./test.log
|
||||||
|
|
||||||
- name: Check Error Code
|
- name: Check Error Code
|
||||||
run: |
|
run: |
|
||||||
scp -o 'StrictHostKeyChecking no' -i /tmp/key {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/return_test.txt .
|
scp -o 'StrictHostKeyChecking no' -i /tmp/key ${{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/return_test.txt .
|
||||||
[ $(cat ./return_test.txt) -eq 0 ]
|
[ $(cat ./return_test.txt) -eq 0 ]
|
||||||
|
|
||||||
# integrationtest:
|
# integrationtest:
|
||||||
|
Loading…
Reference in New Issue
Block a user