Skip to content

Commit

Permalink
chore(ci): execute js-waku integration tests on image build (#2006)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavlin committed Sep 8, 2023
1 parent 7d9d8a3 commit 5d976df
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci-experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,10 @@ jobs:
with:
experimental: true
secrets: inherit

js-waku:
needs: build-docker-image
uses: waku-org/js-waku/.github/workflows/ci.yml@master
with:
nim_wakunode_image: ${{ needs.build-docker-image.outputs.image }}
caller: nwaku
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,10 @@ jobs:
if: ${{ needs.changes.outputs.v2 == 'true' || needs.changes.outputs.common == 'true' || needs.changes.outputs.docker == 'true' }}
uses: waku-org/nwaku/.github/workflows/container-image.yml@master
secrets: inherit

js-waku:
needs: build-docker-image
uses: waku-org/js-waku/.github/workflows/ci.yml@master
with:
nim_wakunode_image: ${{ needs.build-docker-image.outputs.image }}
caller: nwaku
9 changes: 9 additions & 0 deletions .github/workflows/container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
inputs:
experimental:
type: boolean
outputs:
image:
description: The resulting image link
value: ${{ jobs.build-docker-image.outputs.image }}

env:
NPROC: 2
Expand All @@ -20,6 +24,8 @@ jobs:
timeout-minutes: 60

name: docker-build-${{ matrix.os }}
outputs:
image: ${{ steps.build.outputs.image }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -51,6 +57,7 @@ jobs:
IMAGE=quay.io/wakuorg/nwaku-pr:${TAG}
echo "image=${IMAGE}" >> $GITHUB_OUTPUT
echo "commit_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
docker login -u ${QUAY_USER} -p ${QUAY_PASSWORD} quay.io
docker build -t ${IMAGE} -f docker/binaries/Dockerfile.bn.amd64 --label quay.expires-after=7d .
Expand All @@ -70,4 +77,6 @@ jobs:
```
${{steps.build.outputs.image}}
```
Built from ${{ steps.build.outputs.commit_hash }}
comment_tag: execution${{ inputs.experimental && '**experimental**' || ''}}

0 comments on commit 5d976df

Please sign in to comment.