mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-08 10:26:35 +00:00
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:
32
.github/workflows/test-code.yml
vendored
Normal file
32
.github/workflows/test-code.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user