Compare commits

..

9 Commits

Author SHA1 Message Date
d3c641e9ab renew npm mirror in demo.yaml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2024-12-11 14:00:11 +08:00
7ae98092d7 renew nodejs mirror in demo.yaml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 20m56s
2024-12-11 13:30:16 +08:00
13e16ef2f3 renew bun command in demo.yaml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2024-12-11 13:20:45 +08:00
c6480bc628 add mirror for node in demo.yaml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 24m18s
2024-12-11 11:51:07 +08:00
4de023612b add local clone support
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2024-12-11 11:42:29 +08:00
a3e1a923a2 add external tests in demo.yaml
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
2024-12-11 11:26:29 +08:00
a788b0eb6a additional change for workflows
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
2024-12-11 11:17:34 +08:00
5fbed74c29 test trigger gitea action 2024-12-11 11:16:01 +08:00
690929cd92 add test workflows files 2024-12-11 11:08:38 +08:00
3 changed files with 72 additions and 0 deletions

28
.gitea/workflows/ci.yaml Normal file
View File

@ -0,0 +1,28 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '22' # 根据项目需求调整Node.js版本
- name: Install dependencies
run: bun install
- name: Run development server
run: bun run dev

View File

@ -0,0 +1,42 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: Checkout code
uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2
- name: Set up Node.js
uses: http://fly6516.synology.me:4000/Gitea_Action/setup-node@v2
with:
node-version: '22' # 根据项目需求调整Node.js版本
env:
NODEJS_ORG_MIRROR: "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/" # 指定你的本地仓库地址
- name: Install bun
run: npm config set registry https://registry.npmmirror.com && npm install -g bun
- name: Install bun
run: bun install
- name: Run development server
run: bun run dev
#- name: Run development server
#run: cp ./java /app/java
#- v /homework/java:/app/java

2
test.md Normal file
View File

@ -0,0 +1,2 @@
trigger test for gitea action
bla bla bla