mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2024-12-22 07:35:48 +02:00
upgrade tests to 1.20
This commit is contained in:
parent
ca1a3fb023
commit
069735deb1
2 changed files with 11 additions and 6 deletions
|
@ -10,23 +10,23 @@ jobs:
|
||||||
with:
|
with:
|
||||||
user: testuser
|
user: testuser
|
||||||
password: admin1234
|
password: admin1234
|
||||||
image-version: 1.19
|
image-version: 1.20
|
||||||
|
|
||||||
- name: Make the forgejo-release action available for testing
|
- name: push self
|
||||||
run: |
|
run: |
|
||||||
forgejo-test-helper.sh push_self_action http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser forgejo-release vTest
|
forgejo-test-helper.sh push_self_action http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser forgejo-release vTest
|
||||||
|
|
||||||
- name: Actions tests from testdata/upload-download/.forgejo/workflows
|
- name: testdata/upload-download
|
||||||
run: |
|
run: |
|
||||||
export FORGEJO_RUNNER_LOGS="${{ steps.forgejo.outputs.runner-logs }}"
|
export FORGEJO_RUNNER_LOGS="${{ steps.forgejo.outputs.runner-logs }}"
|
||||||
forgejo-test-helper.sh run_workflow testdata/upload-download http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser upload-download forgejo-release "${{ steps.forgejo.outputs.token }}"
|
forgejo-test-helper.sh run_workflow testdata/upload-download http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser upload-download forgejo-release "${{ steps.forgejo.outputs.token }}"
|
||||||
|
|
||||||
- name: Actions tests from testdata/nested-upload-download/.forgejo/workflows
|
- name: testdata/nested-upload-download
|
||||||
run: |
|
run: |
|
||||||
export FORGEJO_RUNNER_LOGS="${{ steps.forgejo.outputs.runner-logs }}"
|
export FORGEJO_RUNNER_LOGS="${{ steps.forgejo.outputs.runner-logs }}"
|
||||||
forgejo-test-helper.sh run_workflow testdata/nested-upload-download http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser nested-upload-download forgejo-release "${{ steps.forgejo.outputs.token }}"
|
forgejo-test-helper.sh run_workflow testdata/nested-upload-download http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser nested-upload-download forgejo-release "${{ steps.forgejo.outputs.token }}"
|
||||||
|
|
||||||
- name: Integration tests of the supporting script forgejo-release.sh
|
- name: test forgejo-release.sh
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
set -ex
|
||||||
export FORGEJO="${{ steps.forgejo.outputs.url }}"
|
export FORGEJO="${{ steps.forgejo.outputs.url }}"
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
name: Upload (and download) a release to (and from) a project found in a Forgejo instance that is different from the one running the workflow
|
#
|
||||||
|
# Upload (and download) a release to (and from) a project
|
||||||
|
# found in a Forgejo instance that is different from the one running the workflow
|
||||||
|
#
|
||||||
|
name: two Forgejo
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
setup-forgejo:
|
setup-forgejo:
|
||||||
|
@ -13,6 +17,7 @@ jobs:
|
||||||
user: testuser
|
user: testuser
|
||||||
password: admin1234
|
password: admin1234
|
||||||
lxc-ip-prefix: 10.0.15
|
lxc-ip-prefix: 10.0.15
|
||||||
|
image-version: 1.20
|
||||||
- id: testrepo
|
- id: testrepo
|
||||||
run: |
|
run: |
|
||||||
forgejo-test-helper.sh push testrepo http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser testrepo > /tmp/output
|
forgejo-test-helper.sh push testrepo http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser testrepo > /tmp/output
|
||||||
|
|
Loading…
Reference in a new issue