Initialize project template
All checks were successful
CI / smoke (push) Successful in 10s

This commit is contained in:
Codex
2026-04-05 09:31:36 +08:00
commit 44316ee9e3
4 changed files with 71 additions and 0 deletions

12
.editorconfig Normal file
View File

@@ -0,0 +1,12 @@
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false

29
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,29 @@
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
smoke:
runs-on: linux-amd64
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Show workspace
run: |
echo "repo: ${GITHUB_REPOSITORY}"
echo "sha: ${GITHUB_SHA}"
pwd
git status --short
find . -maxdepth 2 -type f | sort
- name: Validate template files
run: |
test -f README.md
test -f .editorconfig
test -f .gitea/workflows/ci.yml

20
.gitignore vendored Normal file
View File

@@ -0,0 +1,20 @@
# OS
.DS_Store
Thumbs.db
# Editors
.vscode/
.idea/
# Logs
*.log
# Environment
.env
.env.*
# Dependencies and build output
node_modules/
dist/
build/
coverage/

10
README.md Normal file
View File

@@ -0,0 +1,10 @@
# Project Template
This repository is a Gitea template for starting new projects.
Included by default:
- `.gitea/workflows/ci.yml` for a basic CI smoke check
- `.editorconfig` for consistent formatting
- `.gitignore` with a few safe defaults
Use Gitea's "Use this template" action to generate a new repository from it.