46 lines
1.1 KiB
YAML
46 lines
1.1 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: Checkout product
|
|
run: |
|
|
git clone -q ${{ env.REPO_URL }} -b ${{ gitea.branch }}
|
|
- name: Prepare binaries
|
|
run: make build
|
|
working-directory: ./autogits
|
|
- name: Prepare images
|
|
run: make build
|
|
working-directory: ./autogits/integration
|
|
- name: Make sure the pod is down
|
|
run: make down
|
|
working-directory: ./autogits/integration
|
|
- name: Start images
|
|
run: make up
|
|
working-directory: ./autogits/integration
|
|
- name: Run tests
|
|
run: py.test-3.11 -v tests
|
|
working-directory: ./autogits/integration
|
|
- name: Make sure the pod is down
|
|
run: make down
|
|
working-directory: ./autogits/integration
|
|
|