2023-03-26 11:41:37 -04:00
|
|
|
on: [ push ]
|
|
|
|
jobs:
|
|
|
|
integration:
|
|
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- id: forgejo
|
|
|
|
uses: https://code.forgejo.org/actions/setup-forgejo@v1
|
|
|
|
with:
|
2023-03-26 17:03:56 -04:00
|
|
|
user: testuser
|
2023-03-27 11:17:17 -04:00
|
|
|
password: admin1234
|
2023-03-26 11:41:37 -04:00
|
|
|
image-version: 1.19
|
2023-03-27 11:17:17 -04:00
|
|
|
- name: 001
|
|
|
|
run: |
|
2023-03-29 11:16:26 -04:00
|
|
|
set -ex
|
2023-03-27 11:46:00 -04:00
|
|
|
export FORGEJO_RUNNER_LOGS="${{ steps.forgejo.outputs.runner-logs }}"
|
2023-03-29 11:16:26 -04:00
|
|
|
forgejo-test-helper.sh push_self_action http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser forgejo-release vTest
|
|
|
|
forgejo-test-helper.sh run_workflow testdata/upload-download http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser upload-download forgejo-release
|
2023-03-27 11:17:17 -04:00
|
|
|
- name: 002
|
|
|
|
run: |
|
2023-03-26 11:41:37 -04:00
|
|
|
set -ex
|
2023-03-26 17:03:56 -04:00
|
|
|
export FORGEJO="${{ steps.forgejo.outputs.url }}"
|
|
|
|
export RELEASETEAMTOKEN="${{ steps.forgejo.outputs.token }}"
|
|
|
|
export CI_REPO_OWNER=testuser
|
|
|
|
testdata/forgejo-release-test.sh test_run
|