Merge pull request #160 from yunyingk/chore/codex-local-environment
CI / validate (push) Has been cancelled

chore: 添加 Codex 本地开发与示例环境
This commit is contained in:
yunyingk authored and GitHub committed 2026-11-01 20:47:53 +08:00
commit eb9b979943
2 files changed
+113

No files matched your search

+65
View File
@@ -0,0 +1,65 @@
# THIS IS AUTOGENERATED. DO NOT EDIT MANUALLY
version = 1
name = "示例example"
[setup]
script = '''
echo "Example setup: installing dependencies"
bun install --frozen-lockfile'''
[setup.darwin]
script = '''
set -e
export PATH="$HOME/.bun/bin:$PATH"
echo "Example setup: macOS"
sw_vers -productVersion
bun install --frozen-lockfile'''
[setup.linux]
script = '''
set -e
export PATH="$HOME/.bun/bin:$PATH"
echo "Example setup: Linux"
uname -sr
bun install --frozen-lockfile'''
[setup.win32]
script = '''
echo Example setup: Windows
cmd /c ver
bun install --frozen-lockfile'''
[cleanup]
script = "echo \"Example cleanup: no extra resources to stop\""
[cleanup.darwin]
script = "echo \"Example cleanup: macOS, no extra resources to stop\""
[cleanup.linux]
script = "echo \"Example cleanup: Linux, no extra resources to stop\""
[cleanup.win32]
script = "echo Example cleanup: Windows, no extra resources to stop"
[[actions]]
name = "示例:运行测试"
icon = "test"
command = "bun test"
[[actions]]
name = "示例:macOS 版本"
icon = "tool"
command = "sw_vers"
platform = "darwin"
[[actions]]
name = "示例:Linux 版本"
icon = "tool"
command = "uname -a"
platform = "linux"
[[actions]]
name = "示例:Windows 版本"
icon = "tool"
command = "cmd /c ver"
platform = "win32"
+48
View File
@@ -0,0 +1,48 @@
# THIS IS AUTOGENERATED. DO NOT EDIT MANUALLY
version = 1
name = "hose-use"
[setup]
script = "bun install --frozen-lockfile"
[setup.darwin]
script = '''
set -e
export PATH="$HOME/.bun/bin:$PATH"
bun install --frozen-lockfile'''
[setup.linux]
script = '''
set -e
export PATH="$HOME/.bun/bin:$PATH"
bun install --frozen-lockfile'''
[setup.win32]
script = "bun install --frozen-lockfile"
[cleanup]
script = ""
[cleanup.darwin]
script = ""
[cleanup.linux]
script = ""
[cleanup.win32]
script = ""
[[actions]]
name = "类型检查"
icon = "tool"
command = "bun run check"
[[actions]]
name = "运行测试"
icon = "test"
command = "bun test"
[[actions]]
name = "提交前检查"
icon = "run"
command = "bun test && bun run check"