1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-28 09:21:13 -05:00

[CI] upload the forgejo under test as an artifact for end-to-end (squash) merge feature branches

(cherry picked from commit 83cd7a3ad9)
This commit is contained in:
Earl Warren 2023-12-21 22:02:12 +01:00
parent 20e9d4bffb
commit 75fd819ee5
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -4,6 +4,9 @@ on:
types: types:
- labeled - labeled
env:
FEATURE_BRANCHES: "privacy i18n moderation branding dependency"
jobs: jobs:
info: info:
runs-on: docker runs-on: docker
@ -27,17 +30,28 @@ jobs:
image: 'docker.io/node:20-bookworm' image: 'docker.io/node:20-bookworm'
steps: steps:
- uses: https://code.forgejo.org/actions/checkout@v3 - uses: https://code.forgejo.org/actions/checkout@v3
with:
fetch-depth: '0'
show-progress: 'false'
- name: adduser forgejo
run: |
git config --add safe.directory '*'
git config user.email "you@example.com"
git config user.name "Your Name"
adduser --quiet --comment forgejo --disabled-password forgejo
chown -R forgejo:forgejo .
- name: merge feature branches
run: |
su forgejo -c 'set -ex ; for b in ${{ env.FEATURE_BRANCHES }} ; do git merge -m $b origin/forgejo-$b ; done'
- uses: https://code.forgejo.org/actions/setup-go@v4 - uses: https://code.forgejo.org/actions/setup-go@v4
with: with:
go-version: ">=1.21" go-version: ">=1.21"
- run: | - name: make deps-backend
git config --add safe.directory '*' run: |
adduser --quiet --comment forgejo --disabled-password forgejo
chown -R forgejo:forgejo .
- run: |
su forgejo -c 'make deps-backend' su forgejo -c 'make deps-backend'
- run: | - name: make forgejo
su forgejo -c 'make generate-backend static-executable && ln gitea forgejo' forgejo run: |
su forgejo -c 'make generate-backend static-executable && ln gitea forgejo'
env: env:
TAGS: bindata sqlite sqlite_unlock_notify TAGS: bindata sqlite sqlite_unlock_notify
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3