Skip to content

local kubernetes setup #3

local kubernetes setup

local kubernetes setup #3

Workflow file for this run

name: Test Tilt
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tilt-test:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Bring up environment
shell: bash
run: |
mkdir -p /tmp/tilt-logs
mkfifo /tmp/tilt-logs/tilt.pipe
cat /tmp/tilt-logs/tilt.pipe > tilt.log &
SERVICES_OVERRIDE=minio,postgresql,metadata-service,argo-workflows,argo-events make -C devtools up > /tmp/tilt-logs/tilt.pipe 2>&1 &
echo $! > /tmp/tilt.pid
tail -f tilt.log &
echo $! > /tmp/tail.pid
- name: Run tests
run: |
make -C devtools shell
python3 -m pip install --upgrade pip setuptools
python3 -m pip install tox
tox
- name: Tear down environment
run: |
if [ -f /tmp/tail.pid ] && kill -0 $(cat /tmp/tail.pid) 2>/dev/null; then
kill $(cat /tmp/tail.pid) || true
fi
if [ -f /tmp/tilt.pid ] && kill -0 $(cat /tmp/tilt.pid) 2>/dev/null; then
kill $(cat /tmp/tilt.pid) || true
fi
make -C devtools down || true
timeout-minutes: 5