mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-25 10:59:18 +08:00
Updating SpecFlow workflow not to run on 1.10.x anymore
Some checks failed
Compile / Compile .NET solution (push) Has been cancelled
Compile / Compile Client-side Assets (push) Has been cancelled
SpecFlow Tests / SpecFlow Tests (push) Has been cancelled
Build Crowdin Translation Packages / build-crowdin-translation-packages (push) Has been cancelled
Some checks failed
Compile / Compile .NET solution (push) Has been cancelled
Compile / Compile Client-side Assets (push) Has been cancelled
SpecFlow Tests / SpecFlow Tests (push) Has been cancelled
Build Crowdin Translation Packages / build-crowdin-translation-packages (push) Has been cancelled
This commit is contained in:
23
.github/workflows/specflow.yml
vendored
23
.github/workflows/specflow.yml
vendored
@@ -5,43 +5,20 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 1.10.x
|
|
||||||
- dev
|
- dev
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * 1' # Every Monday midnight.
|
- cron: '0 0 * * 1' # Every Monday midnight.
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
define-matrix:
|
|
||||||
name: Define Strategy Matrix
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
outputs:
|
|
||||||
branches: ${{ steps.branches.outputs.branches }}
|
|
||||||
steps:
|
|
||||||
- name: Define Branches
|
|
||||||
id: branches
|
|
||||||
run: |
|
|
||||||
if [ "${{ github.event_name }}" = "schedule" ]; then
|
|
||||||
echo 'branches=["1.10.x", "dev"]' >> "$GITHUB_OUTPUT"
|
|
||||||
else
|
|
||||||
echo 'branches=["${{ github.ref_name }}"]' >> "$GITHUB_OUTPUT"
|
|
||||||
fi
|
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
name: SpecFlow Tests
|
name: SpecFlow Tests
|
||||||
needs: define-matrix
|
|
||||||
runs-on: windows-2025
|
runs-on: windows-2025
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
branch: ${{ fromJSON(needs.define-matrix.outputs.branches) }}
|
|
||||||
fail-fast: false
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: cmd
|
shell: cmd
|
||||||
steps:
|
steps:
|
||||||
- name: Clone Repository
|
- name: Clone Repository
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
with:
|
|
||||||
ref: ${{ matrix.branch }}
|
|
||||||
|
|
||||||
- name: Restore NuGet Packages
|
- name: Restore NuGet Packages
|
||||||
run: nuget restore src/Orchard.sln
|
run: nuget restore src/Orchard.sln
|
||||||
|
|||||||
Reference in New Issue
Block a user