Skip to content

Dev/rework foundation #352

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 26 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
84eb283
[GitActions][Delete] build & pack workflows
zapadi Feb 22, 2024
a14530f
[GitActions] Improve build, test & pack workflows
zapadi Feb 22, 2024
f010133
Merge branch 'dev/rework-foundation' of github.com:zapadi/redmine-net…
zapadi Feb 23, 2024
c7abcf9
[New][SemaphoreSlimExtensions] - WaitAsync for .net 4.0
zapadi Feb 28, 2024
3346e36
[New][TaskExtensions]
zapadi Feb 28, 2024
86c803f
[RedmineManagerAsync] Add ReplaceEndingsRegex for NET70 onwards
zapadi Feb 28, 2024
aa88782
[TaskExtensions] Add WhenAll for .net 4.0
zapadi Feb 28, 2024
d29da3f
[RedmineManagerAsync] Improve GetAsync
zapadi Feb 28, 2024
948bd06
[Global.Json] Update the sdk version to 8.0.303
zapadi Aug 3, 2024
e021336
[Logo] Update logo
zapadi Aug 3, 2024
c7433fc
[Csproj] Build symbol package (.snupkg)
zapadi Aug 3, 2024
1c8ce6e
[Appveyor] Cahnge VS version to 2022
zapadi Aug 3, 2024
ba922b8
[IssueCustomField] Serialization improvements
zapadi Aug 3, 2024
2413a2f
[GitActions][Delete] build & pack workflows
zapadi Feb 22, 2024
bb637e3
[GitActions] Improve build, test & pack workflows
zapadi Feb 22, 2024
0bb4cf7
[New][SemaphoreSlimExtensions] - WaitAsync for .net 4.0
zapadi Feb 28, 2024
54a7438
[New][TaskExtensions]
zapadi Feb 28, 2024
3435bd2
[RedmineManagerAsync] Add ReplaceEndingsRegex for NET70 onwards
zapadi Feb 28, 2024
9621e3e
[TaskExtensions] Add WhenAll for .net 4.0
zapadi Feb 28, 2024
451b3b1
[RedmineManagerAsync] Improve GetAsync
zapadi Feb 28, 2024
466f227
[Global.Json] Update the sdk version to 8.0.303
zapadi Aug 3, 2024
aefcd6e
[Logo] Update logo
zapadi Aug 3, 2024
c1f9ac2
[Csproj] Build symbol package (.snupkg)
zapadi Aug 3, 2024
611c504
[Appveyor] Cahnge VS version to 2022
zapadi Aug 3, 2024
8750f39
[IssueCustomField] Serialization improvements
zapadi Aug 3, 2024
17e070b
Merge remote-tracking branch 'origin/dev/rework-foundation' into dev/…
zapadi Aug 3, 2024
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
110 changes: 91 additions & 19 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,107 @@
name: 'Build and Test'

on:
workflow_call:
workflow_dispatch:
inputs:
reason:
description: 'The reason for running the workflow'
required: false
default: 'Manual build and run tests'
workflow_run:
workflows: [ 'Build' ]
types:
- completed
push:
tags-ignore:
- '[0-9]+.[0-9]+.[0-9]+*'
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
pull_request:
branches: [ master ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
# Disable the .NET logo in the console output.
DOTNET_NOLOGO: true

# Stop wasting time caching packages
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

# Disable sending usage data to Microsoft
DOTNET_CLI_TELEMETRY_OPTOUT: true

DOTNET_ADD_GLOBAL_TOOLS_TO_PATH: false

DOTNET_MULTILEVEL_LOOKUP: 0

PROJECT_PATH: .

CONFIGURATION: Release

jobs:
build:
uses: ./.github/workflows/build.yml
test:
name: Test - ${{matrix.os}}
needs: [build]
needs: before
name: Build ${{ matrix.os }} - dotnet ${{ matrix.dotnet }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
os: [ ubuntu-latest, windows-latest, macos-latest ]

steps:
- name: Test
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
timeout-minutes: 60
run: >-
dotnet test "${{ env.PROJECT_PATH }}"
--no-restore
--no-build
--verbosity normal
--logger "trx;LogFileName=test-results.trx" || true

- name: Print manual run reason
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo 'Reason: ${{ github.event.inputs.reason }}'

- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 0

- name: Setup .NET (global.json)
uses: actions/setup-dotnet@v4

- name: Display dotnet version
run: dotnet --version

- uses: actions/cache@v4
with:
path: ~/.nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget

- name: Restore
run: dotnet restore "${{ env.PROJECT_PATH }}"

- name: Build
run: >-
dotnet build "${{ env.PROJECT_PATH }}"
--configuration "${{ env.CONFIGURATION }}"
--no-restore

- name: Test
timeout-minutes: 60
run: >-
dotnet test "${{ env.PROJECT_PATH }}"
--no-restore
--no-build
--verbosity normal
--logger trx
--results-directory "TestResults-${{ matrix.os }}" || true

- name: Upload test results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}
path: TestResults-${{ matrix.os }}
86 changes: 0 additions & 86 deletions .github/workflows/build.yml

This file was deleted.

95 changes: 0 additions & 95 deletions .github/workflows/pack.yml

This file was deleted.

Loading
Loading