Files
mcp-ics/.gitea/workflows/_ci-common.yaml
T
OpenCode Cabillot 155178c665
CI Shared Jobs / hadolint (pull_request) Successful in 41s
CI Shared Jobs / build-test (pull_request) Successful in 3m38s
PR Checks / ci (pull_request) Successful in 4m40s
ci: smoke test = compileall (server.py raises on import without CALDAV_DATA_PATH)
2026-10-08 20:40:10 +00:00

35 lines
1.1 KiB
YAML

name: CI Shared Jobs
on:
workflow_call:
jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
with:
dockerfile: pkg/Dockerfile
failure-threshold: warning
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
- name: Build (cached)
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
file: pkg/Dockerfile
push: false
load: true
tags: ci-image:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Smoke test (compile sanity)
run: docker run --rm --name mcp-ics-smoke-$(hostname) ci-image:${{ github.sha }} python -m compileall -q src/