mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 05:11:03 -05:00
34 lines
1.3 KiB
YAML
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)
|