mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-20 17:55:55 +00:00
[TESTS] upgrade tests for storage
(cherry picked from commit884ca63738
) (cherry picked from commit0a45d9c37b
) [TESTS] upgrade tests for storage (squash) relative paths (cherry picked from commit3bb19285f3
) (cherry picked from commitc640c09e61
) (cherry picked from commit40ffe2d226
) [UPGRADE] S3 storage and fixtures (cherry picked from commitc466c9c657
) (cherry picked from commite80abbe2cd
) (cherry picked from commit50a47df1d1
) [UPGRADE] add sanity checks for [storage*] (squash) speedup upgrade tests (cherry picked from commitf578279cfe
)
This commit is contained in:
parent
353913a26d
commit
6dd677f151
12 changed files with 1238 additions and 0 deletions
45
.forgejo/workflows/upgrade.yml
Normal file
45
.forgejo/workflows/upgrade.yml
Normal file
|
@ -0,0 +1,45 @@
|
|||
name: upgrade
|
||||
|
||||
on:
|
||||
pull_request_review:
|
||||
push:
|
||||
branches:
|
||||
- 'forgejo*'
|
||||
- 'v*/forgejo*'
|
||||
|
||||
jobs:
|
||||
upgrade:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: codeberg.org/forgejo/test_env:main
|
||||
steps:
|
||||
- run: apt-get install -y -qq zstd
|
||||
|
||||
- name: cache S3 binaries
|
||||
id: S3
|
||||
uses: https://code.forgejo.org/actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
/usr/local/bin/minio
|
||||
/usr/local/bin/mc
|
||||
/usr/local/bin/garage
|
||||
key: S3
|
||||
|
||||
- name: skip if S3 cache hit
|
||||
if: steps.S3.outputs.cache-hit != 'true'
|
||||
run: echo no hit
|
||||
|
||||
- uses: https://code.forgejo.org/actions/checkout@v3
|
||||
- uses: https://code.forgejo.org/actions/setup-go@v4
|
||||
with:
|
||||
go-version: "1.21"
|
||||
- run: |
|
||||
git config --add safe.directory '*'
|
||||
chown -R gitea:gitea . /go
|
||||
- run: |
|
||||
su gitea -c 'make deps-backend'
|
||||
- run: |
|
||||
script=$(pwd)/.forgejo/upgrades/test-upgrade.sh
|
||||
$script run dependencies
|
||||
$script clobber
|
||||
su gitea -c "$script test_upgrades"
|
Loading…
Add table
Add a link
Reference in a new issue