mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-27 07:06:42 +00:00
chore(ci): execute js-waku integration tests on image build (#2006)
This commit is contained in:
parent
7d9d8a3fb4
commit
5d976df9a6
7
.github/workflows/ci-experimental.yml
vendored
7
.github/workflows/ci-experimental.yml
vendored
@ -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
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -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
.github/workflows/container-image.yml
vendored
9
.github/workflows/container-image.yml
vendored
@ -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
|
||||
@ -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
|
||||
@ -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 .
|
||||
@ -70,4 +77,6 @@ jobs:
|
||||
```
|
||||
${{steps.build.outputs.image}}
|
||||
```
|
||||
|
||||
Built from ${{ steps.build.outputs.commit_hash }}
|
||||
comment_tag: execution${{ inputs.experimental && '**experimental**' || ''}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user