Skip to content

Restore and build solution in GH Actions. Simplify dotnet tests #3057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/workflows/dotnet-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ on:
- '**.cs'
- '**.csproj'
- '**.sln'
- '.github/workflows/dotnet-test.yml'

pull_request:
branches: [ "main" ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
- '.github/workflows/dotnet-test.yml'

workflow_dispatch:

jobs:

test-codebase:
runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
runs-on: windows-latest

steps:
- name: Checkout the repository
Expand All @@ -37,8 +37,14 @@ jobs:
# - name: Install WinGet
# uses: Cyberboss/install-winget@v1

- name: Install dependencies
working-directory: src
run: dotnet restore

- name: Build
working-directory: src
run: dotnet build --configuration Release --no-restore

- name: Run Tests
run: |
cd src
dotnet test -v q --nologo
cd ..
working-directory: src
run: dotnet test --no-restore --verbosity q --nologo
1 change: 0 additions & 1 deletion .github/workflows/translations-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ jobs:
uses: hmarr/auto-approve-action@v4
with:
review-message: "Tolgee-CI Changes have been approved since they passed testing"

1 change: 1 addition & 0 deletions .github/workflows/winget-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
release:
types: [released]
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
Expand Down
Loading