Skip to content

Commit

Permalink
add: test stage
Browse files Browse the repository at this point in the history
  • Loading branch information
niazhussain committed Nov 2, 2023
1 parent 61c698f commit b978532
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/publishondockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and Publish
on:
push:
branches:
- 'parachain_dev'
- 'add/1205859619866294_add-test-stage'
tags:
- 'peaq-dev-v*' # For the peaq-dev's env in the parchain-launch usage
- 'krest-v*' # For the krest env in the parchain-launch usage
Expand Down Expand Up @@ -34,14 +34,14 @@ jobs:
type=ref,event=pr
type=ref,event=tag
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: scripts/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# - name: Build and push
# uses: docker/build-push-action@v3
# with:
# context: .
# file: scripts/Dockerfile
# push: ${{ github.event_name != 'pull_request' }}
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}

deploy:
name: Deploy
Expand Down Expand Up @@ -77,3 +77,15 @@ jobs:
sudo TAG=${{ steps.image-version.outputs.tag }} docker compose pull
sudo TAG=${{ steps.image-version.outputs.tag }} docker compose down -v
sudo TAG=${{ steps.image-version.outputs.tag }} docker compose up -d --build --remove-orphans
Test:
name: Run Auto Test
runs-on: ubuntu-20.04
needs: deploy
steps:
- name: Checkout code from specific branch
uses: actions/checkout@v2
with:
repository: https://github.com/peaqnetwork/peaq-network-qa
ref: test/1205859619866294_add-test-stage-in-peaqnode-deployment
- name: Run AutoTest
uses: https://github.com/peaqnetwork/peaq-network-qa/blob/test/1205859619866294_add-test-stage-in-peaqnode-deployment/.github/workflows/RunTest.yml

0 comments on commit b978532

Please sign in to comment.