Files
autogits/.gitea/workflows/t.yaml
T
atartamo 893267f342
Integration tests / t (push) Successful in 22m18s
clean data in integration testing ci
2026-04-03 21:20:40 +02:00

61 lines
1.5 KiB
YAML

name: Integration tests
on:
push:
branches: ['main']
pull_request:
workflow_dispatch:
env:
HOME: /var/lib/gitea-runner
REPO_URL: http://src.opensuse.org//git-workflow/autogits.git
jobs:
t:
runs-on: linux-x86_64
steps:
- name: whoami
run: whoami
- name: pwd
run: pwd
- name: vars
run: |
set | grep GITEA_
- name: Clone
run: |
git clone -q ${{ env.REPO_URL }}
- name: Checkout
run: |
echo ${{ gitea.ref }}
git fetch origin ${{ gitea.ref }}
git checkout FETCH_HEAD
working-directory: ./autogits
- name: Prepare binaries
run: make build_for_ci
working-directory: ./autogits
- name: Prepare images
run: |
make build
podman rmi $(podman images -f "dangling=true" -q)
working-directory: ./autogits/integration
- name: Make sure the pod is down and data is cleaned
run: make clean
working-directory: ./autogits/integration
- name: Start images
run: |
make up
make wait_healthy
podman ps
sleep 5
working-directory: ./autogits/integration
- name: Run tests
run: make pytest
working-directory: ./autogits/integration
- name: Make sure the pod is down and data is cleaned
if: always()
run: |
podman ps
make clean
working-directory: ./autogits/integration