
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/8727 ## Testing - 24h after this is merged - push a commit to https://codeberg.org/forgejo-integration/forgejo/src/branch/forgejo with an error - cancel all workflows except for https://codeberg.org/forgejo-integration/forgejo/actions?workflow=testing-integration.yml&actor=0&status=0 - verify a notification was sent to forgejo-integration-actions@forgejo.org about the error - update the user research discussion at https://codeberg.org/forgejo/user-research/issues/64 Co-authored-by: Earl Warren <contact@earl-warren.org> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8730 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org> Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
74 lines
2.3 KiB
YAML
74 lines
2.3 KiB
YAML
#
|
|
# Additional integration tests designed to run once a day when
|
|
# `mirror.yml` pushes to https://codeberg.org/forgejo-integration/forgejo
|
|
# and send a notification via email to the contact email of the
|
|
# organization should they fail.
|
|
#
|
|
# For debug purposes:
|
|
#
|
|
# - uncomment [on].pull_request
|
|
# - swap 'forgejo-integration' and 'forgejo-coding'
|
|
# - open a pull request at https://codeberg.org/forgejo/forgejo and fix things
|
|
# - swap 'forgejo-integration' and 'forgejo-coding'
|
|
# - comment [on].pull_request
|
|
#
|
|
|
|
name: testing-integration
|
|
|
|
on:
|
|
# pull_request:
|
|
push:
|
|
tags: 'v[0-9]+.[0-9]+.*'
|
|
branches:
|
|
- 'forgejo'
|
|
- 'v*/forgejo'
|
|
|
|
enable-email-notifications: true
|
|
|
|
jobs:
|
|
test-unit:
|
|
# if: vars.ROLE == 'forgejo-coding'
|
|
if: vars.ROLE == 'forgejo-integration'
|
|
runs-on: docker
|
|
container:
|
|
image: 'data.forgejo.org/oci/node:22-bookworm'
|
|
options: --tmpfs /tmp:exec,noatime
|
|
steps:
|
|
- uses: https://data.forgejo.org/actions/checkout@v4
|
|
- uses: ./.forgejo/workflows-composite/setup-env
|
|
- name: install git 2.30
|
|
uses: ./.forgejo/workflows-composite/apt-install-from
|
|
with:
|
|
packages: git/bullseye git-lfs/bullseye
|
|
release: bullseye
|
|
- uses: ./.forgejo/workflows-composite/build-backend
|
|
- run: |
|
|
su forgejo -c 'make test-backend test-check'
|
|
timeout-minutes: 120
|
|
env:
|
|
RACE_ENABLED: 'true'
|
|
TAGS: bindata
|
|
test-sqlite:
|
|
# if: vars.ROLE == 'forgejo-coding'
|
|
if: vars.ROLE == 'forgejo-integration'
|
|
runs-on: docker
|
|
container:
|
|
image: 'data.forgejo.org/oci/node:22-bookworm'
|
|
options: --tmpfs /tmp:exec,noatime
|
|
steps:
|
|
- uses: https://data.forgejo.org/actions/checkout@v4
|
|
- uses: ./.forgejo/workflows-composite/setup-env
|
|
- name: install git 2.30
|
|
uses: ./.forgejo/workflows-composite/apt-install-from
|
|
with:
|
|
packages: git/bullseye git-lfs/bullseye
|
|
release: bullseye
|
|
- uses: ./.forgejo/workflows-composite/build-backend
|
|
- run: |
|
|
su forgejo -c 'make test-sqlite-migration test-sqlite'
|
|
timeout-minutes: 120
|
|
env:
|
|
TAGS: sqlite sqlite_unlock_notify
|
|
RACE_ENABLED: true
|
|
TEST_TAGS: sqlite sqlite_unlock_notify
|
|
USE_REPO_TEST_DIR: 1
|