2023-10-11 15:39:52 +02:00
|
|
|
name: integration
|
|
|
|
|
|
|
|
on: [push, pull_request_target]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
integration:
|
|
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- id: forgejo
|
|
|
|
uses: https://code.forgejo.org/actions/setup-forgejo@v1
|
|
|
|
with:
|
|
|
|
user: root
|
|
|
|
password: admin1234
|
|
|
|
image: codeberg.org/forgejo-integration/forgejo
|
|
|
|
image-version: 1.21.0-3-rc0
|
|
|
|
lxc-ip-prefix: 10.1.15
|
|
|
|
|
|
|
|
- name: tests
|
|
|
|
run: |
|
2023-10-13 15:12:16 +02:00
|
|
|
FORGEJO_RUNNER_CONFIG=$(pwd)/tests/runner-config.yaml forgejo-runner.sh reload
|
2023-10-13 15:30:22 +02:00
|
|
|
tests/run.sh --host_port ${{ steps.forgejo.outputs.host-port }} --url ${{ steps.forgejo.outputs.url }} --token ${{ steps.forgejo.outputs.token }}
|