Compare commits

...

8 Commits

  1. 30
      .github/workflows/pr-check.yml
  2. 2
      README.md
  3. 14
      login.html/login.html.txt

30
.github/workflows/pr-check.yml

@ -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!"

2
README.md

@ -1,2 +1,4 @@
# se-team-project # se-team-project
# The SE Team Project (Modified by Dev A)
Welcome! Please [Login Here](login.html).

14
login.html/login.html.txt

@ -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…
Cancel
Save