mirror of
https://code.forgejo.org/actions/cascading-pr
synced 2025-03-14 22:36:58 +01:00
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: integration
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- 'v*'
|
|
pull_request:
|
|
|
|
jobs:
|
|
integration:
|
|
runs-on: lxc-bookworm
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- id: forgejo
|
|
uses: https://code.forgejo.org/actions/setup-forgejo@v1.0.1
|
|
with:
|
|
user: root
|
|
password: admin1234
|
|
image: codeberg.org/forgejo/forgejo
|
|
image-version: 1.21
|
|
lxc-ip-prefix: 10.1.15
|
|
|
|
- name: tests cascading-pr
|
|
run: |
|
|
runner_config=/tmp/runner-config.yaml
|
|
sed -e 's|file: .runner|file: ${{ steps.forgejo.outputs.runner-file }}|' < tests/runner-config.yaml > $runner_config
|
|
FORGEJO_RUNNER_CONFIG=$runner_config forgejo-runner.sh reload
|
|
tests/run.sh --verbose --host_port ${{ steps.forgejo.outputs.host-port }} --url ${{ steps.forgejo.outputs.url }} --token ${{ steps.forgejo.outputs.token }}
|
|
|
|
- name: full logs
|
|
if: always()
|
|
run: |
|
|
sed -e 's/^/[RUNNER LOGS] /' ${{ steps.forgejo.outputs.runner-logs }}
|
|
docker logs forgejo | sed -e 's/^/[FORGEJO LOGS]/'
|
|
sleep 5 # hack to avoid mixing outputs in Forgejo v1.21
|