mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
- Separate between PR and Push execution (with and without secrets) - Turn tests into re-usable workflows and call them from the main ones
40 lines
729 B
YAML
40 lines
729 B
YAML
name: PR Validation
|
|
|
|
on: [pull_request]
|
|
|
|
concurrency:
|
|
group: pr-validation-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
Whitespace-Check:
|
|
uses: ./.github/workflows/trailing-whitespace-check.yml
|
|
secrets: inherit
|
|
name: '1'
|
|
|
|
Tests:
|
|
needs: Whitespace-Check
|
|
uses: ./.github/workflows/integration-tests.yml
|
|
secrets: inherit
|
|
name: '2'
|
|
|
|
build:
|
|
needs: [Whitespace-Check, Tests]
|
|
runs-on: windows-latest
|
|
timeout-minutes: 10
|
|
name: '3 / Build'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup dotnet
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: |
|
|
6.0.x
|
|
8.0.x
|
|
10.0.x
|
|
|
|
- name: Build
|
|
run: .\build.ps1
|