ci: fix testing workflow #265
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Formatting & Tests | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
formatting: | |
runs-on: ubuntu-latest | |
name: Check Build and formatting | |
strategy: | |
max-parallel: 2 | |
matrix: | |
working-directory: ["Flagsmith.FlagsmithClient", "Flagsmith.Engine","Flagsmith.EngineTest","Flagsmith.Client.Test"] | |
steps: | |
- name: Cloning repo | |
uses: actions/checkout@v4 | |
- name: Set up Dotnet | |
uses: actions/setup-dotnet@v4 | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Check Formatting | |
run: dotnet format --verify-no-changes | |
working-directory: ${{ matrix.working-directory }} | |
test: | |
runs-on: ubuntu-latest | |
name: Test | |
strategy: | |
max-parallel: 2 | |
matrix: | |
working-directory: ["Flagsmith.EngineTest","Flagsmith.Client.Test"] | |
steps: | |
- name: Cloning repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Set up Dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
global-json-file: global.json | |
- name: Run Tests | |
run: dotnet test | |
working-directory: ${{ matrix.working-directory }} |