mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-08-21 23:21:11 +02:00
(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
) (cherry picked from commit6dd677f151
) (cherry picked from commitee7e7eca27
) (cherry picked from commit879ffca697
) (cherry picked from commit60b33cc5af
) (cherry picked from commita75b450c7b
) (cherry picked from commit4e8712c523
) (cherry picked from commitf6447567a4
)
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
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"
|