Compare commits
8 Commits
master
...
feature/ad
| Author | SHA1 | Date |
|---|---|---|
|
|
c45aa49485 | 1 week ago |
|
|
e5e2dd3458 | 2 weeks ago |
|
|
1d130ccf4c | 3 weeks ago |
|
|
9d946a989c | 3 weeks ago |
|
|
c91e6da251 | 3 weeks ago |
|
|
cd5747bcd7 | 3 weeks ago |
|
|
a0fea4e241 | 3 weeks ago |
|
|
511b9d1f40 | 3 weeks ago |
3 changed files with 47 additions and 1 deletions
@ -0,0 +1,30 @@ |
|||||
|
YAML |
||||
|
# .github/workflows/pr-check.yml |
||||
|
name: PR Check |
||||
|
# 触发器:当有 PR 提交到 develop 分支时运行 |
||||
|
on: |
||||
|
pull_request: |
||||
|
branches: [ develop ] |
||||
|
# 任务 |
||||
|
jobs: |
||||
|
# 任务 ID,可自定义 |
||||
|
build-and-test: |
||||
|
# 运行环境:使用最新的 Ubuntu |
||||
|
runs-on: ubuntu-latest |
||||
|
# 步骤 |
||||
|
steps: |
||||
|
# 步骤 1:检出代码 |
||||
|
- name: Check out repository code |
||||
|
uses: actions/checkout@v4 |
||||
|
# 步骤 2:安装 Node.js (模拟一个真实环境) |
||||
|
- name: Use Node.js 20.x |
||||
|
uses: actions/setup-node@v4 |
||||
|
with: |
||||
|
node-version: '20.x' |
||||
|
# 步骤 3:运行一个模拟的 "test" |
||||
|
- name: Run a mock test |
||||
|
run: | |
||||
|
echo "Simulating tests..." |
||||
|
echo "Running linter..." |
||||
|
sleep 10 |
||||
|
echo "All tests passed!" |
||||
@ -1,2 +1,4 @@ |
|||||
# se-team-project |
# se-team-project |
||||
|
# The SE Team Project (Modified by Dev A) |
||||
|
Welcome! Please [Login Here](login.html). |
||||
|
|
||||
@ -0,0 +1,14 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
|
<title>Login Page</title> |
||||
|
</head> |
||||
|
<body> |
||||
|
<h2>User Login</h2> |
||||
|
<form> |
||||
|
Username: <input type="text" name="username"><br> |
||||
|
Password: <input type="password" name="password"><br> |
||||
|
<input type="submit" value="Login"> |
||||
|
</form> |
||||
|
</body> |
||||
|
</html> |
||||
Loading…
Reference in new issue