forked from NYANDEV/forgejo
2f9dc0b4cc
(cherry picked from commit 884ca63738cc2e2c7cde31c649e9fa77cd590044)
(cherry picked from commit 0a45d9c37b187249d347020ca79e71c523177d61)
[TESTS] upgrade tests for storage (squash) relative paths
(cherry picked from commit 3bb19285f365ae0b56dedc183db04504946a2a50)
(cherry picked from commit c640c09e6110a8c684dfcc8f9fc05495f30c16f1)
(cherry picked from commit 40ffe2d226f1ea1e78ae40eb0deeccc0838b5d48)
[UPGRADE] S3 storage and fixtures
(cherry picked from commit c466c9c6571b18b1426e07439e7aa6445f5d86dd)
(cherry picked from commit e80abbe2cd7968c5c5601bf5e39de9b265e40ca4)
(cherry picked from commit 50a47df1d17df60cda6504165d5b02ac42e63c86)
[UPGRADE] add sanity checks for [storage*] (squash) speedup upgrade tests
(cherry picked from commit f578279cfe85d4e23b83d3759ec782790fed869d)
(cherry picked from commit 6dd677f151d3ba3b6f016d788585372958608cd6)
(cherry picked from commit ee7e7eca27a2e123188cdf05fb493f51c8c8a3e4)
(cherry picked from commit 879ffca697e6cd04d364ad46a6d4a2d957ba3eb3)
(cherry picked from commit 60b33cc5af4f8ad4e2f27034a7cff98959f44128)
(cherry picked from commit a75b450c7b45f6647ca432bce4cdaebdea70dc47)
(cherry picked from commit 4e8712c52377533fada2cc747d20784275b03aa4)
(cherry picked from commit f6447567a464d2320d26fcccf7fc7293dc6e2a44)
(cherry picked from commit e0ab67536b
)
45 lines
1.1 KiB
YAML
45 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"
|