From 21454480e13ce7faad79f9f49be7f9067fbeb6aa Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Wed, 29 Mar 2023 19:20:39 +0200 Subject: [PATCH] use the test forgejo instance --- testdata/upload-download/.forgejo/workflows/test.yml | 12 +++++++----- .../{ => testrepo}/upload-dir/file1.txt | 0 .../{ => testrepo}/upload-dir/file2.txt | 0 3 files changed, 7 insertions(+), 5 deletions(-) rename testdata/upload-download/{ => testrepo}/upload-dir/file1.txt (100%) rename testdata/upload-download/{ => testrepo}/upload-dir/file2.txt (100%) diff --git a/testdata/upload-download/.forgejo/workflows/test.yml b/testdata/upload-download/.forgejo/workflows/test.yml index f1c122f..8feb173 100644 --- a/testdata/upload-download/.forgejo/workflows/test.yml +++ b/testdata/upload-download/.forgejo/workflows/test.yml @@ -8,16 +8,18 @@ jobs: - id: forgejo uses: https://code.forgejo.org/actions/setup-forgejo@v1 with: - user: root + user: testuser password: admin1234 + - run: | + forgejo-test-helper.sh push testrepo http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser testrepo - id: release-upload uses: SELF@vTest with: direction: upload url: ${{ steps.forgejo.outputs.url }} - repo: root/upload-download + repo: testuser/testrepo tag: v1.0 - doer: root + doer: testuser token: ${{ steps.forgejo.outputs.token }} release-dir: upload-dir verbose: true @@ -26,9 +28,9 @@ jobs: with: direction: download url: ${{ steps.forgejo.outputs.url }} - repo: root/upload-download + repo: testuser/testrepo tag: v1.0 - doer: root + doer: testuser token: ${{ steps.forgejo.outputs.token }} release-dir: download-dir verbose: true diff --git a/testdata/upload-download/upload-dir/file1.txt b/testdata/upload-download/testrepo/upload-dir/file1.txt similarity index 100% rename from testdata/upload-download/upload-dir/file1.txt rename to testdata/upload-download/testrepo/upload-dir/file1.txt diff --git a/testdata/upload-download/upload-dir/file2.txt b/testdata/upload-download/testrepo/upload-dir/file2.txt similarity index 100% rename from testdata/upload-download/upload-dir/file2.txt rename to testdata/upload-download/testrepo/upload-dir/file2.txt