Skip to content

docs: drop the explainer diagram and trim the performance section #1

docs: drop the explainer diagram and trim the performance section

docs: drop the explainer diagram and trim the performance section #1

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- name: Cache the PHP build
id: php-cache
uses: actions/cache@v4
with:
path: php-embed.tar
key: php-embed-${{ hashFiles('docker/Dockerfile.php') }}
- name: Load the cached PHP image
if: steps.php-cache.outputs.cache-hit == 'true'
run: docker load --input php-embed.tar
- name: Build PHP with the embed SAPI
if: steps.php-cache.outputs.cache-hit != 'true'
run: |
docker build -f docker/Dockerfile.php -t stoke/php:8.5.4 .
docker save --output php-embed.tar stoke/php:8.5.4
- name: Build the dev image
run: docker compose -f docker/compose.yml build dev
- name: Start the dev container
run: docker compose -f docker/compose.yml up -d dev
- name: Unit tests
run: docker compose -f docker/compose.yml exec -T dev cargo test --release --locked
- name: Clippy
run: |
docker compose -f docker/compose.yml exec -T dev \
cargo clippy --release --locked -- -D warnings
- name: Conformance and fault injection
run: docker compose -f docker/compose.yml exec -T dev sh -c 'cd /work && sh tests/run-all.sh'
- name: Server logs on failure
if: failure()
run: docker compose -f docker/compose.yml exec -T dev sh -c 'tail -50 /tmp/stoke-run.log' || true