forked from NYANDEV/forgejo
65e37b9940
(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 3ba984b24269cfb18a72119f148686fb77271f4a)
(cherry picked from commit fceff4ca7b7226c076f2878d4e8a49851143e6ff)
(cherry picked from commit e0d732a4e8c90a78993031d390b37f54a3fa8006)
(cherry picked from commit aee13d282c54e2d482cd392641449662b1260a09)
(cherry picked from commit f9a031ab16
)
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"
|