Skip to content

re-fix

re-fix #9

Workflow file for this run

# ---------------------------------------------------------------
# Workflow File : PR-test.yml
# File Authors : Aoran Zeng <ccmywish@qq.com>
# Contributors : Nul None <nul@none.org>
# | Mikachu2333 <mikachu2333@zohomail.com>
# |
# Created On : <2025-06-19>
# Last Modified : <2025-08-07>
#
# Test PR
# ---------------------------------------------------------------
name: 测试PR
on:
push:
paths:
- "src/**"
- "lib/**"
workflow_dispatch:
jobs:
test-on-ubuntu:
name: 在Ubuntu上测试
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v4
- name: 测试构建情况
run: |
make
- name: 测试test情况
run: |
make test
test-on-windows:
name: 在Windows上测试
runs-on: windows-latest
steps:
- name: 检出代码
uses: actions/checkout@v4
- name: 安装依赖
run: |
choco install just
- name: 测试构建情况
run: |
just
- name: 创建测试文件
shell: powershell
run: |
New-Item -Path "$env:USERPROFILE\Documents\Powershell\Microsoft.PowerShell_profile.ps1" -ItemType File -Force
New-Item -Path "$env:USERPROFILE\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1" -ItemType File -Force
- name: 测试test情况
run: |
just test