Update lassie v0.21.0 (#506) #444
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: Run integration tests | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- ".github/workflows/integration-tests.yml" | |
- "container/nginx/**" | |
- "Dockerfile" | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: ["main"] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
integration-tests: | |
name: Integration Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build local Docker image | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
tags: saturn-node | |
cache-from: type=gha,scope=l1 | |
cache-to: type=gha,mode=max,scope=l1 | |
load: true | |
build-args: | | |
SATURN_NETWORK=local | |
ORCHESTRATOR_URL=http://localhost | |
LOG_INGESTOR_URL=http://localhost | |
- name: Run tests | |
run: | | |
set -eu | |
export HTTP_PORT=8080 | |
ORCHESTRATOR_REGISTRATION=false sh scripts/run.sh & | |
num_attempts=0 | |
max_attempts=5 | |
url="http://localhost:${HTTP_PORT}" | |
# wait for the container to be up | |
until curl -s "$url" -o /dev/null; do | |
if [ ${num_attempts} -eq ${max_attempts} ];then | |
echo "Max attempts reached" | |
exit 1 | |
fi | |
num_attempts=$(($num_attempts+1)) | |
sleep 5; | |
done | |
sh scripts/integration_tests.sh "$url" | |
- name: Print L1 logs | |
if: failure() | |
run: cat /home/runner/work/L1-node/L1-node/shared/nginx_log/error.log || true |