mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2026-02-04 06:48:09 +00:00
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://github.com/actions/checkout) | action | major | `v4` → `v6` | --- ### Release Notes <details> <summary>actions/checkout (actions/checkout)</summary> ### [`v6`](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v600) [Compare Source](https://github.com/actions/checkout/compare/v5...v6) - Persist creds to a separate file by [@​ericsciple](https://github.com/ericsciple) in [#​2286](https://github.com/actions/checkout/pull/2286) - Update README to include Node.js 24 support details and requirements by [@​salmanmkc](https://github.com/salmanmkc) in [#​2248](https://github.com/actions/checkout/pull/2248) ### [`v5`](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v501) [Compare Source](https://github.com/actions/checkout/compare/v4...v5) - Port v6 cleanup to v5 by [@​ericsciple](https://github.com/ericsciple) in [#​2301](https://github.com/actions/checkout/pull/2301) </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi43MS4wIiwidXBkYXRlZEluVmVyIjoiNDIuNzEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/117 Reviewed-by: Mathieu Fenniak <mfenniak@noreply.code.forgejo.org> Co-authored-by: Renovate Bot <bot@kriese.eu> Co-committed-by: Renovate Bot <bot@kriese.eu>
77 lines
3.4 KiB
YAML
77 lines
3.4 KiB
YAML
on: [ pull_request, push ]
|
|
|
|
|
|
env:
|
|
FORGEJO_VERSION: 11.0.9 # renovate: datasource=docker depName=code.forgejo.org/forgejo/forgejo
|
|
|
|
|
|
jobs:
|
|
integration:
|
|
runs-on: lxc-trixie
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- id: forgejo
|
|
uses: https://code.forgejo.org/actions/setup-forgejo@v3.1.0
|
|
with:
|
|
user: testuser
|
|
password: admin1234
|
|
image-version: ${{ env.FORGEJO_VERSION }}
|
|
|
|
- name: push self
|
|
run: |
|
|
forgejo-test-helper.sh push_self_action http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser forgejo-release vTest
|
|
|
|
- name: testdata/upload-download
|
|
run: |
|
|
export LOOP_DELAY=30
|
|
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 }}"
|
|
|
|
set -ex
|
|
export FORGEJO="${{ steps.forgejo.outputs.url }}"
|
|
curl --fail -sS $FORGEJO/api/v1/repos/testuser/upload-download/releases/tags/v2.0 > /tmp/v2.json
|
|
EXPECTED='No shell expansion should on these notes:
|
|
- $(some_command)
|
|
- `other_commend`
|
|
- "double quoted" and '\''single quoted'\'' strings
|
|
- \backslash escape
|
|
- !exclamation_mark'
|
|
test "$EXPECTED" = "$(jq -r .body < /tmp/v2.json)"
|
|
|
|
test $(cat /tmp/v2.json | jq -r .hide_archive_links) = false
|
|
|
|
curl --fail -sS $FORGEJO/api/v1/repos/testuser/upload-download/releases/tags/v1.0 > /tmp/v1.json
|
|
cat /tmp/v1.json | jq -r .body | grep '<!--start release-notes-assistant-->'
|
|
|
|
test $(cat /tmp/v1.json | jq -r .hide_archive_links) = true
|
|
|
|
- name: testdata/upload-download-private
|
|
run: |
|
|
export LOOP_DELAY=30
|
|
export FORGEJO_RUNNER_LOGS="${{ steps.forgejo.outputs.runner-logs }}"
|
|
curl -X 'POST' 'http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }}/api/v1/user/repos' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{"name": "upload-download-private","private": true}'
|
|
forgejo-test-helper.sh run_workflow testdata/upload-download http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser upload-download-private forgejo-release "${{ steps.forgejo.outputs.token }}"
|
|
|
|
- name: testdata/nested-upload-download
|
|
run: |
|
|
export LOOP_DELAY=30
|
|
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 }}"
|
|
|
|
- name: test forgejo-release.sh
|
|
run: |
|
|
set -ex
|
|
export FORGEJO="${{ steps.forgejo.outputs.url }}"
|
|
export TOKEN="${{ steps.forgejo.outputs.token }}"
|
|
export VERBOSE=true
|
|
testdata/forgejo-release-test.sh test_run testuser otherrepo
|
|
|
|
- if: always()
|
|
name: '[RUNNER] and [FORGEJO] logs'
|
|
run: |
|
|
runner_logs="${{ steps.forgejo.outputs.runner-logs }}"
|
|
if test -f "$runner_logs"; then
|
|
sed -e 's/^/[RUNNER] /' < $runner_logs
|
|
fi
|
|
docker logs forgejo | sed -e 's/^/[FORGEJO] /'
|