Skip to content
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

Bump the nuget group across 1 directories with 1 update #5

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
2884038
Database docs started
Chingling152 Oct 10, 2021
a5cd185
Add : project basic structure
Chingling152 Oct 12, 2021
ad1317a
release v0.1.0
Chingling152 Feb 11, 2022
b39fff3
release v0.2.0
Chingling152 Feb 11, 2022
c7b3057
Release v0.2.1
Chingling152 Feb 13, 2022
d5d8d5f
Release v0.2.2
Chingling152 Feb 13, 2022
cc17384
Release v0.2.3
Chingling152 Apr 6, 2022
72837a6
Release v0.2.4
Chingling152 Apr 22, 2022
34396aa
Release v0.3.0
Chingling152 Jun 3, 2022
deb3648
Release/v0.3.1 (#125)
Chingling152 Mar 15, 2023
c33b152
Release v0.3.2 (#127)
Chingling152 Mar 17, 2023
07252cd
Release v0.3.3 (#134)
Chingling152 Mar 30, 2023
b4dad7e
Release v0.4.0
Chingling152 Jul 19, 2023
2b2e114
Bump Swashbuckle.AspNetCore.SwaggerUI from 6.2.3 to 6.3.0
dependabot[bot] Jul 19, 2023
877c603
Release v0.4.1
Chingling152 Jul 27, 2023
0a7a6ce
Release v0.4.1-1
Chingling152 Jul 27, 2023
f02e9d7
Release v0.4.2
Chingling152 Jul 28, 2023
48a076b
Release v0.4.3
Chingling152 Jul 28, 2023
8af9a7f
Release v0.5.0
Chingling152 Aug 3, 2023
b91473a
Release v0.5.1
Chingling152 Aug 18, 2023
1d735a7
Release v0.5.2
Chingling152 Aug 21, 2023
a5b5a8c
Release v0.5.3
Chingling152 Sep 6, 2023
f1aa509
Release v0.5.4
Chingling152 Sep 6, 2023
431698e
Release v0.5.4-1
Chingling152 Sep 8, 2023
fd9ff89
Removes Core project
Chingling152 Feb 24, 2024
0b7d42b
Remove core project from pipeline
Chingling152 Feb 24, 2024
74189e2
Remove core tests
Chingling152 Feb 24, 2024
b90e069
Removes All core docs
Chingling152 Feb 24, 2024
f07027c
Removes coverage
Chingling152 Feb 24, 2024
0002f81
Removes core project
Chingling152 Feb 24, 2024
da75788
Release v0.1.0
Chingling152 Feb 24, 2024
6c4ea14
Bump the nuget group across 1 directories with 1 update
dependabot[bot] Feb 24, 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
26 changes: 26 additions & 0 deletions .github/actions/build-dotnet-project/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build Dotnet Project
description: Hello!

inputs:
project-dir:
description: 'Yay, project directory'
required: true
type: string
dotnet-version:
description: 'Yay, dotnet version'
required: false
type: string
default: 6.0.x

runs:
using: "composite"
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ inputs.dotnet-version }}

- name: Restore dependencies
run: dotnet restore ${{ inputs.project-dir }}
shell: bash

22 changes: 22 additions & 0 deletions .github/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Run Tests
description: This project run project that has an assemly with an specified Category

inputs:
project-dir:
description: 'project directory'
required: true
category:
description: 'Type of the test (Unit or Integration)'
default: Unit

runs:
using: "composite"
steps:
- name: Run Tests
shell: bash
continue-on-error: true
run: dotnet test ${{ inputs.project-dir }}
--filter "TestCategory=${{ inputs.category }}"
--logger:"trx;logfilename=Results-${{ inputs.category }}.xml"
--configuration release

60 changes: 60 additions & 0 deletions .github/workflows/api_releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: "API Release"

on:
workflow_dispatch:
pull_request:
types:
- closed
branches:
- 'release/**'

jobs:
releases:
name: Release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Get version
run: echo "value=${BRANCH##*/}" >> $GITHUB_OUTPUT
id: version
env:
BRANCH: ${{ github.event.pull_request.base.ref }}

- name: Create tag
uses: actions/github-script@v5
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/api/${{ steps.version.outputs.value }}',
sha: context.sha
})

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: api/${{ steps.version.outputs.value }}
release_name: Release ${{ steps.version.outputs.value }}
body: Hello World
draft: true
prerelease: true

# TODO: zip
#- name: Upload Release Asset
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./my-artifact.zip
# asset_name: my-artifact.zip
# asset_content_type: application/zip
50 changes: 50 additions & 0 deletions .github/workflows/archived/api_basic_flow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "API Build & Tests"

on:
push:
branches:
- 'main'
paths:
- 'src/FinancialHub/*'
- 'src/FinancialHub/**'
pull_request:
branches:
- 'main'
- 'release/**'
paths:
- 'src/FinancialHub/*'
- 'src/FinancialHub/**'

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest

services:
sql-database:
image: mcr.microsoft.com/mssql/server:2019-latest
env:
SA_PASSWORD: "P@ssw0rd!"
ACCEPT_EULA: "Y"
ports:
- 1450:1433

steps:
- uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x

- name: Restore dependencies
run: dotnet restore
working-directory: './src/FinancialHub/'

- name: Build
run: dotnet build --no-restore
working-directory: './src/FinancialHub/'

- name: Test
run: dotnet test --no-build --verbosity normal
working-directory: './src/FinancialHub/'
34 changes: 34 additions & 0 deletions .github/workflows/archived/api_clean_cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Cleanup caches by branch
on:
pull_request:
types:
- closed

jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Install Github Action Cache Manager
run: gh extension install actions/gh-actions-cache
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get current merge
run: echo "value=refs/pull/${{ github.event.pull_request.number }}/merge" >> $GITHUB_OUTPUT
id: merge

- name: Fetching list of cache key
run: |
cacheKeysForPR=$(gh actions-cache list -R ${{ github.repository }} -B ${{ steps.merge.outputs.value }} | cut -f 1 )
set +e
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Deleting caches
run: |
for cacheKey in $cacheKeysForPR
do
gh actions-cache delete $cacheKey -R ${{ github.repository }} -B ${{ steps.merge.outputs.value }} --confirm
done
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
113 changes: 113 additions & 0 deletions .github/workflows/archived/api_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: "API Basic Workflow"

on:
push:
branches:
- 'main'
paths:
- 'src/FinancialHub/*'
- 'src/FinancialHub/**'
pull_request:
branches:
- 'main'
- 'release/**'
#paths:
# - 'src/FinancialHub/*'
# - 'src/FinancialHub/**'


env:
project-dir: ./src/FinancialHub/
project-tests-dir: ./src/FinancialHub/ # for now it has no distiction
project-tests-results-dir: ./src/FinancialHub/TestResult # for now it has no distiction

permissions:
checks: write
pull-requests: write

jobs:
tests:
name: Build & Test
runs-on: ubuntu-latest

defaults:
run:
working-directory: ${{ env.project-dir }}

services:
sql-database:
image: mcr.microsoft.com/mssql/server:2019-latest
env:
SA_PASSWORD: "P@ssw0rd!"
ACCEPT_EULA: "Y"
ports:
- 1450:1433

steps:
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x

- uses: actions/checkout@v2

- name: Restore dependencies
run: dotnet restore

- name: Run Tests
continue-on-error: true
run: dotnet test
--logger:"trx;logfilename=Results.xml"
--configuration release

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
action_fail: true
files: "**/TestResults/Results.xml"

- name: Restore Dotnet tests
run: dotnet tool restore

- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v1
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner

- name: Begin Coverage Report
run:
dotnet tool run dotnet-sonarscanner begin
/k:"Chingling152_my-financial-hub"
/o:"chingling-152"
/d:sonar.token="${{ secrets.SONAR_TOKEN }}"
/d:sonar.host.url="https://sonarcloud.io"
/d:sonar.coverage.exclusions="**/Migrations/."
/d:sonar.cs.opencover.reportsPaths="/TestResults/**/coverage.opencover.xml"

- name: Build Project
run: dotnet build
--configuration Release
--no-restore

- name: Run Coverage Report
continue-on-error: true
run: dotnet test
--collect:"XPlat Code Coverage;Format=opencover"
--results-directory TestResults/
--configuration Release

- name: Send Coverage Report
run:
dotnet tool run dotnet-sonarscanner end
/d:sonar.token="${{ secrets.SONAR_TOKEN }}"
28 changes: 28 additions & 0 deletions .github/workflows/branch_main_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Main Tests & Analysis"

on:
push:
branches:
- 'main'
paths:
- 'src/api/*'
- 'src/api/**'
pull_request:
branches:
- 'main'
paths:
- 'src/api/*'
- 'src/api/**'

permissions:
checks: write
pull-requests: write

jobs:
tests:
name: Tests
uses: ./.github/workflows/matrix_test_result.yml
secrets: inherit
with:
dir: ./src/api/
dotnet-version: 6.0.x
22 changes: 22 additions & 0 deletions .github/workflows/branch_release_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Release Tests & Analysis"

on:
pull_request:
branches:
- 'release/**'
paths:
- 'src/api/*'
- 'src/api/**'

permissions:
checks: write
pull-requests: write

jobs:
tests:
name: Tests
uses: ./.github/workflows/matrix_test_result.yml
secrets: inherit
with:
dir: ./src/api/
dotnet-version: 6.0.x
Loading
Loading