Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
f78372e
Workflow build enviroment
maias1907 Feb 17, 2025
4a9445c
Workflow build enviroment
maias1907 Feb 17, 2025
480b4bd
Workflow build enviroment
maias1907 Feb 17, 2025
d48415d
Workflow build enviroment
maias1907 Feb 17, 2025
9df3226
Workflow build enviroment
maias1907 Feb 17, 2025
65ba6e6
Workflow build enviroment
maias1907 Feb 17, 2025
c7e79bc
Workflow build enviroment
maias1907 Feb 17, 2025
6099110
Workflow build enviroment
maias1907 Feb 17, 2025
df080f4
Workflow build enviroment
maias1907 Feb 17, 2025
34a471b
Workflow build enviroment
maias1907 Feb 17, 2025
432c457
Workflow build enviroment
maias1907 Feb 17, 2025
35b2ceb
Workflow build enviroment
maias1907 Feb 17, 2025
c068990
Workflow build enviroment
maias1907 Feb 17, 2025
4b662ce
Workflow build enviroment
maias1907 Feb 17, 2025
5c13c95
Workflow build enviroment
maias1907 Feb 17, 2025
11a10c6
Workflow build enviroment
maias1907 Feb 17, 2025
eb55ab3
Initial commit
maias1907 Feb 20, 2025
be0c69b
Add newfile.txt
maias1907 Feb 21, 2025
e5d1675
Workflow build enviroment
maias1907 Feb 23, 2025
3f6979d
Workflow build enviroment
maias1907 Feb 23, 2025
86daffd
Workflow build enviroment
maias1907 Feb 23, 2025
fc7b2a1
Workflow build enviroment
maias1907 Feb 23, 2025
f6c193e
Workflow build enviroment
maias1907 Feb 23, 2025
42b182f
Workflow build enviroment
maias1907 Feb 23, 2025
85b1a44
Workflow build enviroment
maias1907 Feb 23, 2025
73bf86f
Workflow build enviroment
maias1907 Feb 23, 2025
0aaa078
Workflow build enviroment
maias1907 Feb 23, 2025
5c6339c
Workflow build enviroment
maias1907 Feb 23, 2025
167e8fd
Workflow build enviroment
maias1907 Feb 23, 2025
a6636e1
Workflow build enviroment
maias1907 Feb 23, 2025
83a36b3
Workflow build enviroment
maias1907 Feb 23, 2025
3c71ef6
Workflow build enviroment
maias1907 Feb 25, 2025
66e1104
Workflow build enviroment
maias1907 Feb 25, 2025
874a21c
Workflow build enviroment
maias1907 Feb 25, 2025
af809e5
Workflow build enviroment
maias1907 Feb 25, 2025
f4c22da
Workflow build enviroment
maias1907 Feb 25, 2025
18688d3
Workflow build enviroment
maias1907 Feb 25, 2025
abecd08
Workflow build enviroment
maias1907 Feb 25, 2025
4385678
Workflow build enviroment
maias1907 Feb 25, 2025
35eabb5
Workflow build enviroment
maias1907 Feb 25, 2025
4ac8933
Workflow build enviroment
maias1907 Feb 25, 2025
2d37737
Workflow build enviroment
maias1907 Feb 27, 2025
537828b
Workflow build enviroment
maias1907 Feb 27, 2025
a55b5ba
Workflow build enviroment
maias1907 Feb 27, 2025
adb9c8f
Workflow build enviroment
maias1907 Feb 27, 2025
de671b3
Workflow build enviroment
maias1907 Feb 27, 2025
f63a3ee
Workflow build enviroment
maias1907 Feb 27, 2025
12a7015
Workflow build enviroment
maias1907 Feb 27, 2025
2487b3f
Workflow build enviroment
maias1907 Feb 27, 2025
e6a6a18
Workflow build enviroment
maias1907 Feb 27, 2025
73de2a5
Workflow build enviroment
maias1907 Feb 27, 2025
5c83b37
Workflow build enviroment
maias1907 Feb 27, 2025
a5d8099
Workflow build enviroment
maias1907 Feb 27, 2025
b67b2ef
Workflow build enviroment
maias1907 Mar 2, 2025
4adf853
build
maias1907 Mar 2, 2025
18c3e46
build
maias1907 Mar 2, 2025
8f7fdf0
build
maias1907 Mar 2, 2025
d59c57d
build
maias1907 Mar 2, 2025
f1fb1c9
build
maias1907 Mar 2, 2025
29f1222
build
maias1907 Mar 2, 2025
fd5f726
build
maias1907 Mar 2, 2025
34ce384
build
maias1907 Mar 2, 2025
39b1acb
build
maias1907 Mar 3, 2025
a6179f2
build
maias1907 Mar 3, 2025
ebd5fbb
build
maias1907 Mar 3, 2025
87c0412
build
maias1907 Mar 3, 2025
b7ae2d5
build
maias1907 Mar 3, 2025
945754c
build
maias1907 Mar 4, 2025
856428c
build
maias1907 Mar 4, 2025
8d5ed8d
build
maias1907 Mar 4, 2025
cb4dac5
build
maias1907 Mar 4, 2025
206b2ba
build
maias1907 Mar 6, 2025
1ab4b50
build
maias1907 Mar 6, 2025
5dfd155
build
maias1907 May 23, 2025
3353b58
build
maias1907 May 23, 2025
e0c5e0f
build
maias1907 May 23, 2025
13e476c
build
maias1907 May 23, 2025
01be65a
build
maias1907 May 23, 2025
e2f009d
build
maias1907 May 23, 2025
87d84f0
build
maias1907 May 23, 2025
87c847b
yes
maias1907 May 26, 2025
1538080
yes
maias1907 May 26, 2025
72e7298
yes
maias1907 May 27, 2025
80bcfc0
yes
maias1907 May 27, 2025
ece48d1
Build and intergration enviroment
maias1907 May 27, 2025
f9ea540
Build and intergration and pre-production enviroment
maias1907 May 27, 2025
1f483f1
Build and intergration and pre-production enviroment
maias1907 May 27, 2025
6419b53
Build and intergration and pre-production enviroment
maias1907 May 27, 2025
dfa39b0
Build and intergration and pre-production enviroment
maias1907 May 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
38 changes: 38 additions & 0 deletions .github/workflow/cron-translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# name: cron-translations

# on:
# schedule:
# - cron: "7 0 * * *" # every day at 00:07 UTC
# workflow_dispatch:

# jobs:
# crowdin-pull:
# runs-on: ubuntu-latest
# if: github.repository == 'go-gitea/gitea'
# steps:
# - uses: actions/checkout@v4
# - uses: crowdin/github-action@v1
# with:
# upload_sources: true
# upload_translations: false
# download_sources: false
# download_translations: true
# push_translations: false
# push_sources: false
# create_pull_request: false
# config: crowdin.yml
# env:
# CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
# CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }}
# - name: update locales
# run: ./build/update-locales.sh
# - name: push translations to repo
# uses: appleboy/git-push-action@v0.0.3
# with:
# author_email: "teabot@gitea.io"
# author_name: GiteaBot
# branch: main
# commit: true
# commit_message: "[skip ci] Updated translations via Crowdin"
# remote: "git@github.com:go-gitea/gitea.git"
# ssh_key: ${{ secrets.DEPLOY_KEY }}
37 changes: 37 additions & 0 deletions .github/workflows/Pre-Production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Pre-Production Performance Testing

on:
push:
branches:
- main # Runs after PR is merged into main

jobs:
preprod-perf-test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Java (required by JMeter)
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'

- name: Install JMeter
run: |
sudo apt update
sudo apt install -y jmeter
jmeter --version

- name: Run JMeter Test
run: |
mkdir -p reports/jmeter
jmeter -n -t tests/perf_test.jmx -l reports/jmeter/results.jtl -e -o reports/jmeter/report

- name: Upload JMeter HTML Report
uses: actions/upload-artifact@bcb6a651d2b8c4fdb17bcf0d2581a3ad16f58aa9 # Pin to known good SHA
with:
name: jmeter-report
path: reports/jmeter/report
66 changes: 66 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Gitea Build Environment Workflow

on:
push:
branches:
- feature_branch
# Trigger on push to the dev branch just

jobs:
build:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the code from the repository
- name: Checkout repository
uses: actions/checkout@v2

# Step 2: Set up Go (Gitea is written in Go) yes yesy se
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.24.0' # Use the Go version that Gitea supports

# Step 3: Install dependencies
- name: Install dependencies
run: go mod tidy

- name: Run unit tests
run: go test ./... -v
continue-on-error: true

- name: Run linting
run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run
continue-on-error: true

docker:
runs-on: ubuntu-latest
needs: build # This will wait until the 'build' job is finished

steps:
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v2

# Step 2: Set up Docker
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

# Step 3: Log in to Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }} # Store your Docker username as a secret in GitHub
password: ${{ secrets.DOCKER_PASSWORD }} # Store your Docker password as a secret in GitHub

# Step 4: Build the Docker image
- name: Build Docker image
run: |
docker build -t maias816/gitea:latest .

# Step 5: Push the Docker image to Docker Hub
- name: Push Docker image
run: |
docker push maias816/gitea:latest
31 changes: 29 additions & 2 deletions .github/workflows/cron-licenses.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,35 @@
# name: cron-licenses

# on:
# # schedule:
# # - cron: "7 0 * * 1" # every Monday at 00:07 UTC
# workflow_dispatch:

# jobs:
# cron-licenses:
# runs-on: ubuntu-latest
# if: github.repository == 'go-gitea/gitea'
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v5
# with:
# go-version-file: go.mod
# check-latest: true
# - run: make generate-license generate-gitignore
# timeout-minutes: 40
# - name: push translations to repo
# uses: appleboy/git-push-action@v0.0.3
# with:
# author_email: "teabot@gitea.io"
# author_name: GiteaBot
# branch: main
# commit: true
# commit_message: "[skip ci] Updated licenses and gitignores"
# remote: "git@github.com:go-gitea/gitea.git"
# ssh_key: ${{ secrets.DEPLOY_KEY }}
name: cron-licenses

on:
# schedule:
# - cron: "7 0 * * 1" # every Monday at 00:07 UTC
workflow_dispatch:

jobs:
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/cron-translations.yml

This file was deleted.

98 changes: 98 additions & 0 deletions .github/workflows/files-changed.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,101 @@
# name: files-changed

# on:
# workflow_call:
# outputs:
# backend:
# value: ${{ jobs.detect.outputs.backend }}
# frontend:
# value: ${{ jobs.detect.outputs.frontend }}
# docs:
# value: ${{ jobs.detect.outputs.docs }}
# actions:
# value: ${{ jobs.detect.outputs.actions }}
# templates:
# value: ${{ jobs.detect.outputs.templates }}
# docker:
# value: ${{ jobs.detect.outputs.docker }}
# swagger:
# value: ${{ jobs.detect.outputs.swagger }}
# yaml:
# value: ${{ jobs.detect.outputs.yaml }}

# jobs:
# detect:
# runs-on: ubuntu-latest
# timeout-minutes: 3
# outputs:
# backend: ${{ steps.changes.outputs.backend }}
# frontend: ${{ steps.changes.outputs.frontend }}
# docs: ${{ steps.changes.outputs.docs }}
# actions: ${{ steps.changes.outputs.actions }}
# templates: ${{ steps.changes.outputs.templates }}
# docker: ${{ steps.changes.outputs.docker }}
# swagger: ${{ steps.changes.outputs.swagger }}
# yaml: ${{ steps.changes.outputs.yaml }}
# steps:
# - uses: actions/checkout@v4
# - uses: dorny/paths-filter@v3
# id: changes
# with:
# filters: |
# backend:
# - "**/*.go"
# - "templates/**/*.tmpl"
# - "assets/emoji.json"
# - "go.mod"
# - "go.sum"
# - "Makefile"
# - ".golangci.yml"
# - ".editorconfig"
# - "options/locale/locale_en-US.ini"

# frontend:
# - "**/*.js"
# - "web_src/**"
# - "assets/emoji.json"
# - "package.json"
# - "package-lock.json"
# - "Makefile"
# - ".eslintrc.yaml"
# - "stylelint.config.js"
# - ".npmrc"

# docs:
# - "**/*.md"
# - ".markdownlint.yaml"
# - "package.json"
# - "package-lock.json"

# actions:
# - ".github/workflows/*"
# - "Makefile"

# templates:
# - "tools/lint-templates-*.js"
# - "templates/**/*.tmpl"
# - "pyproject.toml"
# - "poetry.lock"

# docker:
# - "Dockerfile"
# - "Dockerfile.rootless"
# - "docker/**"
# - "Makefile"

# swagger:
# - "templates/swagger/v1_json.tmpl"
# - "Makefile"
# - "package.json"
# - "package-lock.json"
# - ".spectral.yaml"

# yaml:
# - "**/*.yml"
# - "**/*.yaml"
# - ".yamllint.yaml"
# - "pyproject.toml"
# - "poetry.lock"
name: files-changed

on:
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Gitea Setup and Testing

on:
pull_request:


workflow_dispatch:

jobs:
setup-and-test:
runs-on: ubuntu-latest

services:
postgres:
image: postgres:13
options: --health-cmd="pg_isready -U gitea_user" --health-timeout=30s --health-retries=3
ports:
- 5432:5432
env:
POSTGRES_DB: gitea
POSTGRES_USER: gitea_user
POSTGRES_PASSWORD: gitea_pass

redis:
image: redis:alpine
ports:
- 6379:6379

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }} # GitHub Secrets for Docker username
password: ${{ secrets.DOCKER_PASSWORD }} # GitHub Secrets for Docker password

- name: Pull Test Docker Image for API tests
run: |
docker pull maias816/api_ui_tests:latest
# Pull the existing image from docker hub1
- name: Run API and UI Tests
run: |
docker run --rm maias816/api_ui_tests:latest

# - name: pull feature image # pull and feature image ok k
# run: |
# docker pull maias816/code-formatter:latest
# - name : run feature tests
# run: |
# docker run maias816/code-formatter:latest




8 changes: 5 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ output:

linters-settings:
testifylint:
disable:
- go-require
- require-error
disable:
- go-require
- require-error


stylecheck:
checks: ["all", "-ST1005", "-ST1003"]
nakedret:
Expand Down
Loading