1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-forgejo synced 2024-09-19 01:46:16 +00:00
setup-forgejo/.forgejo/workflows/integration-action.yml

34 lines
1.3 KiB
YAML

on:
push:
branches:
- 'main'
- 'v*'
pull_request:
#
# Testing that action.yml works as intended, the other tests do not do hat.
#
jobs:
integration-action:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: forgejo.sh & forgejo-runner.sh
run: |
LXC_IP_PREFIX=10.0.9 ./forgejo-dependencies.sh
export PATH=$(pwd):$PATH
forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.20
forgejo-runner.sh setup
echo "============================ upload setup-forgejo ==================="
forgejo-test-helper.sh push_self_action $(cat forgejo-auth-url) root setup-forgejo vTest
- name: lxc-run-forgejo-binary
run: |
export PATH=$(pwd):$PATH
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
forgejo-test-helper.sh run_workflow testdata/lxc-run-forgejo-binary $(cat forgejo-auth-url) root lxc-run-forgejo-binary setup-forgejo $(cat forgejo-token)
- name: lxc-run-forgejo-oci
run: |
export PATH=$(pwd):$PATH
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
forgejo-test-helper.sh run_workflow testdata/lxc-run-forgejo-oci $(cat forgejo-auth-url) root lxc-run-forgejo-oci setup-forgejo $(cat forgejo-token)