Refactor CI workflows and fix timezone handling in containers

- Renamed test-cli.yml to test-code.yml and updated job name.
- Extended timeout for test-deploy workflow from 30 to 240 minutes.
- Skipped Ansible timezone configuration inside Docker/Podman/containerd to avoid write errors in CI.
- Added --skip-tests to the initial deploy step for improved CI stability.

Origin: https://chatgpt.com/share/69301c58-6628-800f-9e3a-f026c01b6e17
This commit is contained in:
2025-12-03 12:17:59 +01:00
parent d12f7a10a6
commit a31ef07718
3 changed files with 5 additions and 3 deletions

32
.github/workflows/test-code.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Build & Test Infinito.Nexus CLI in Docker Container
on:
push:
branches:
- master
pull_request:
jobs:
test-code:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Docker image
run: |
docker build --network=host -t infinito:latest .
- name: Clean build artifacts
run: |
docker run --network=host --rm infinito:latest infinito make clean
- name: Generate project outputs
run: |
docker run --network=host --rm infinito:latest infinito make build
- name: Run tests
run: |
docker run --network=host --rm infinito:latest infinito make test