mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 02:41:01 -05:00
example: echo
This commit is contained in:
parent
a6e1d54a97
commit
cdd9a76852
2 changed files with 12 additions and 0 deletions
|
@ -18,7 +18,13 @@ jobs:
|
||||||
#
|
#
|
||||||
./forgejo-runner.sh setup
|
./forgejo-runner.sh setup
|
||||||
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
|
export FORGEJO_RUNNER_LOGS=forgejo-runner.log
|
||||||
|
for example in echo ; do
|
||||||
|
echo "============================ example-$example ==================="
|
||||||
|
./forgejo-test-helper.sh run_workflow testdata/example-$example http://root:admin1234@$(cat forgejo-ip):3000 root example-$example setup-forgejo $(cat forgejo-token)
|
||||||
|
done
|
||||||
|
echo "============================ demo ==================="
|
||||||
./forgejo-test-helper.sh run_workflow testdata/demo http://root:admin1234@$(cat forgejo-ip):3000 root demo setup-forgejo $(cat forgejo-token) > /tmp/output
|
./forgejo-test-helper.sh run_workflow testdata/demo http://root:admin1234@$(cat forgejo-ip):3000 root demo setup-forgejo $(cat forgejo-token) > /tmp/output
|
||||||
grep '^sha=' /tmp/output
|
grep '^sha=' /tmp/output
|
||||||
|
echo "============================ sanity-check ==================="
|
||||||
./forgejo-test-helper.sh push_self_action http://root:admin1234@$(cat forgejo-ip):3000 root setup-forgejo vTest
|
./forgejo-test-helper.sh push_self_action http://root:admin1234@$(cat forgejo-ip):3000 root setup-forgejo vTest
|
||||||
./forgejo-test-helper.sh run_workflow testdata/sanity-checks http://root:admin1234@$(cat forgejo-ip):3000 root sanity-check setup-forgejo $(cat forgejo-token)
|
./forgejo-test-helper.sh run_workflow testdata/sanity-checks http://root:admin1234@$(cat forgejo-ip):3000 root sanity-check setup-forgejo $(cat forgejo-token)
|
||||||
|
|
6
testdata/example-echo/.forgejo/workflows/test.yml
vendored
Normal file
6
testdata/example-echo/.forgejo/workflows/test.yml
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: echo All Good
|
Loading…
Reference in a new issue