This commit is contained in:
12
.editorconfig
Normal file
12
.editorconfig
Normal 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
29
.gitea/workflows/ci.yml
Normal 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
20
.gitignore
vendored
Normal 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
10
README.md
Normal 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.
|
||||
Reference in New Issue
Block a user