Support additional apk feeds #500
Workflow file for this run
This file contains hidden or 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 podman-compose.yml | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| TERM: xterm-color | |
| PY_COLORS: 1 | |
| LOG_LEVEL: DEBUG | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: podman-compose integration test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install prereqs | |
| run: sudo apt-get install -y jq | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Build the containers | |
| run: | | |
| uv run podman-compose build | |
| - name: Start the containers | |
| run: | | |
| export CONTAINER_SOCKET_PATH="/tmp/podman.sock" | |
| podman system service --time=0 "unix://$CONTAINER_SOCKET_PATH" & | |
| echo "PUBLIC_PATH=$(pwd)/public" > .env | |
| echo "CONTAINER_SOCKET_PATH=$CONTAINER_SOCKET_PATH" >> .env | |
| uv run podman-compose up -d | |
| - name: Let the containers start | |
| run: sleep 30 | |
| - name: Test startup | |
| run: | | |
| curl -s http://localhost:8000/api/v1/stats | tee response.json | jq | |
| [ "$(jq -r '.queue_length' response.json)" -eq 0 ] || exit 1 | |
| - name: Test build | |
| run: | | |
| for i in {1..20}; do | |
| curl 'http://localhost:8000/api/v1/build' \ | |
| --request 'POST' \ | |
| --header 'Content-Type: application/json' \ | |
| --data @tests/ci/openwrt-one-24.10.0.json | tee response.json | jq | |
| if [ "$(jq -r '.status' response.json)" -eq 200 ]; then | |
| break | |
| fi | |
| if [ $i -eq 20 ]; then | |
| exit 1 | |
| fi | |
| sleep 10 | |
| done |