Remove extra tests
This commit is contained in:
parent
7f988c9bb2
commit
53c1e32041
56
.github/workflows/build_separate_proj.yml
vendored
56
.github/workflows/build_separate_proj.yml
vendored
|
|
@ -1,56 +0,0 @@
|
|||
name: Build all C# projects separately
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
release:
|
||||
types:
|
||||
- created
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
prepare_matrix:
|
||||
runs-on: windows-2019
|
||||
outputs:
|
||||
projects: ${{ steps.set_outputs.outputs.projects }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Get all.csproj files
|
||||
id: set_outputs
|
||||
run: |
|
||||
|
||||
$projects = Get-ChildItem -Recurse '*.csproj' | ForEach-Object { $_.FullName }
|
||||
$json = $projects | ConvertTo-Json -Compress
|
||||
Write-Host $json
|
||||
echo "::set-output name=projects::$json"
|
||||
|
||||
build-and-test:
|
||||
runs-on: windows-2019
|
||||
needs: prepare_matrix
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
project: ${{ fromJson(needs.prepare_matrix.outputs.projects) }}
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run tests for each project
|
||||
run: |
|
||||
|
||||
$project = "${{ matrix.project }}"
|
||||
.\Studio.bat $project
|
||||
|
||||
$pname = [IO.Path]::GetFileNameWithoutExtension($project)
|
||||
if ($pname -eq 'PABCNETCclear') {
|
||||
'##' | Set-Content 'a.pas'
|
||||
&".\bin\$pname.exe" .\a.pas
|
||||
}
|
||||
20
.github/workflows/buildandruntests.yml
vendored
20
.github/workflows/buildandruntests.yml
vendored
|
|
@ -19,11 +19,10 @@ defaults:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
name: Prepare and build on Windows Server 2016 VM
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies into Virtual Environment...
|
||||
run: _RegisterHelixNUnit.bat
|
||||
|
|
@ -42,3 +41,20 @@ jobs:
|
|||
# with:
|
||||
# name: All_distros
|
||||
# path: Release
|
||||
|
||||
build-PABCNETCclear-separate:
|
||||
name: Build PABCNETCclear project without invoking full rebuild
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build and run PABCNETCclear project
|
||||
shell: pwsh
|
||||
run: |
|
||||
|
||||
$project = 'PABCNETCclear'
|
||||
.\Studio.bat "pabcnetc_clear\$project.csproj"
|
||||
|
||||
'##' | Set-Content 'a.pas'
|
||||
&".\bin\$project.exe" .\a.pas
|
||||
Loading…
Reference in a new issue