mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 04:05:42 +01:00
[CI] upload the forgejo under test as an artifact for end-to-end (squash) merge feature branches
This commit is contained in:
parent
d1e8198553
commit
83cd7a3ad9
1 changed files with 21 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue