forgejo-release/.forgejo/workflows/integration.yml

35 lines
1.4 KiB
YAML
Raw Normal View History

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-27 00:03:56 +03:00
user: testuser
2023-03-27 18:17:17 +03:00
password: admin1234
image-version: 1.19
2023-03-30 18:27:35 +03:00
2023-05-24 02:08:27 +03:00
- name: Upload
2023-03-27 18:17:17 +03:00
run: |
2023-03-29 18:16:26 +03:00
forgejo-test-helper.sh push_self_action http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser forgejo-release vTest
2023-03-30 18:27:35 +03:00
2023-05-24 02:08:27 +03:00
- name: Upload and download
2023-03-30 18:27:35 +03:00
run: |
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 }}"
2023-03-30 18:27:35 +03:00
2023-05-24 02:08:27 +03:00
- name: Nested upload and download
2023-03-30 18:27:35 +03:00
run: |
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 }}"
2023-03-30 18:27:35 +03:00
2023-05-24 02:08:27 +03:00
- name: Self test
2023-03-27 18:17:17 +03:00
run: |
set -ex
2023-03-27 00:03:56 +03:00
export FORGEJO="${{ steps.forgejo.outputs.url }}"
2023-03-30 02:08:18 +03:00
export TOKEN="${{ steps.forgejo.outputs.token }}"
export VERBOSE=true
testdata/forgejo-release-test.sh test_run testuser otherrepo