setup-forgejo/.forgejo/workflows/integration-action.yml

34 lines
1.3 KiB
YAML
Raw Normal View History

on:
push:
branches:
- 'main'
- 'v*'
pull_request:
#
# Testing that action.yml works as intended, the other tests do not do hat.
#
jobs:
integration-action:
2024-12-06 12:11:41 -05:00
runs-on: lxc-bookworm
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)