Test acceptance workflow #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Acceptance | |
on: | |
pull_request: | |
branches: | |
- "main" | |
- "release/**" | |
push: | |
branches: | |
- "main" | |
- "release/**" | |
tags: | |
- "v*" | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
contents: read | |
jobs: | |
solo: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Setup Node | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
with: | |
node-version: 21 | |
- name: Install JDK | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Install Wget | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends wget | |
- name: Install Helm | |
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4 | |
- name: Setup Kind | |
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0 | |
with: | |
kubectl_version: v1.29.3 | |
version: v0.23.0 | |
- name: Setup Solo Cluster | |
run: | | |
SOLO_CLUSTER=solo-mirror-acceptance | |
SOLO_NAMESPACE=solo | |
kind create cluster -n $SOLO_CLUSTER; | |
npm i -g @hashgraph/solo@0.27.0; | |
solo init -n $SOLO_NAMESPACE -i node0,node1,node2; | |
solo cluster setup | |
solo network deploy | |
solo node keys --gossip-keys --tls-keys --key-format pem | |
solo node setup | |
solo node start | |
solo mirror-node deploy | |
- name: Run acceptance tests | |
run: helm test fullstack-deployment -n solo --logs --filter name=mirror-acceptance | |
- name: Show Container Log | |
if: ${{ failure() }} | |
run: | | |
echo "Logs for online container ${ONLINE_CONTAINER_ID}" | |
[[ -n "${ONLINE_CONTAINER_ID}" ]] && docker logs ${ONLINE_CONTAINER_ID} || true |