local kubernetes setup #4
Workflow file for this run
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: 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 | |
make -C devtools shell | |
python3 -m pip install --upgrade pip setuptools | |
python3 -m pip install tox | |
tox | |
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 |