Skip to content

Commit

Permalink
Prepare the migration for the first release (#1)
Browse files Browse the repository at this point in the history
* Initial port from Easify

* Prepare solution for an initial release

* Update the build

* Change the codeql analysis
  • Loading branch information
moattarwork authored Jan 2, 2023
1 parent 6804d63 commit 3194174
Show file tree
Hide file tree
Showing 124 changed files with 699 additions and 687 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: CI on Branches and PRs

on:
workflow_dispatch:
branches-ignore: [ master ]
branches-ignore: [master]
paths: "src/**"

push:
branches-ignore: [ master ]
branches-ignore: [master]
paths: "src/**"

pull_request:
branches: [ master ]
branches: [master]
paths: "src/**"

jobs:
Expand All @@ -24,11 +24,11 @@ jobs:
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: "5.5.x"
versionSpec: "5.8.x"
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: "3.1.x"
dotnet-version: "6.0.x"
- name: Install dependencies
run: dotnet restore src
- name: Use GitVersion
Expand All @@ -49,6 +49,6 @@ jobs:
name: nuget-packages
path: "**/*.nupkg"
- name: Configure github as Package Repository
run: dotnet nuget add source https://nuget.pkg.github.com/icgam/index.json -n "github"
run: dotnet nuget add source https://nuget.pkg.github.com/LittleBlocks/index.json -n "github"
- name: Publish the package to GitHub Packages
run: dotnet nuget push "**/*.nupkg" -s "github" -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
40 changes: 22 additions & 18 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,55 @@
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
branches: [master]
paths:
- "src/**"
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [master]
paths:
- "src/**"
schedule:
- cron: '32 4 * * 3'
- cron: '0 13 * * 0'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['csharp']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Release build on master/main

on:
workflow_dispatch:
branches: [master]
paths: "src/**"
push:
branches: [ master ]
branches: [master]
paths: "src/**"

jobs:
Expand All @@ -16,11 +19,11 @@ jobs:
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: "5.5.x"
versionSpec: "5.8.x"
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: "3.1.x"
dotnet-version: "6.0.x"
- name: Install dependencies
run: dotnet restore src
- name: Use GitVersion
Expand Down
9 changes: 9 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
next-version: 1.0.0
mode: Mainline
major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
patch-version-bump-message: '\+semver:\s?(fix|patch)'
no-bump-message: '\+semver:\s?(none|skip)'
ignore:
commits-before: 2023-01-01T00:00:00

22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Easify Exports
# LittleBlocks Exports

The repo contains a series of Easify componenets which are providing the export functionality of any data source to CsV files targeted to
The repo contains a series of LittleBlocks componenets which are providing the export functionality of any data source to CsV files targeted to
- S3,
- Azure Blob
- File Share
Expand All @@ -20,13 +20,13 @@ The client library provides the common structure which is shared between Domain
The client library contains all the registration and client access library for the scheduler to talk to Exporters in different domain API.

```cmd
dotnet add package Easify.Exports.Client
dotnet add package LittleBlocks.Exports.Client
```

or

```cmd
Install-Package Easify.Exports.Client
Install-Package LittleBlocks.Exports.Client
```

The **AddExporterBuilder** extension method will help with registering the required exporters
Expand Down Expand Up @@ -56,13 +56,13 @@ builder.Build("name of the client")
The Agent library contains all the registration and base services to provides Export functionality to each domains.

```cmd
dotnet add package Easify.Exports.Agent
dotnet add package LittleBlocks.Exports.Agent
```

or

```cmd
Install-Package Easify.Exports.Agent
Install-Package LittleBlocks.Exports.Agent
```

Adding exporters metadata to the configuration will help to define multiple target source for the exporter so the exporter can export the files in multiple location.
Expand Down Expand Up @@ -201,9 +201,9 @@ The library provides a BlobStorage interface to underlying store such as S3 Buck
It can be setup with installing the following package:

```cmd
dotnet add package Easify.Exports
dotnet add package LittleBlocks.Exports
or
Install-Package Easify.Exports
Install-Package LittleBlocks.Exports
```

The following setup, register the related classes and configuration for S3 bucket store
Expand Down Expand Up @@ -233,7 +233,7 @@ Then by injecting **IBlobStorage**, you can work with the underlying store for c

> **NOTE #1:** There are other extensions such as _AddLocalDiskStorage_ or _AddInMemoryStorage_ available for local file storage or even in memory which is suitable for unit and integration testing.
> **NOTE #2:** The same extensions have been provided for Autofac which is provided in _Easify.Exports.Autofac_ package.
> **NOTE #2:** The same extensions have been provided for Autofac which is provided in _LittleBlocks.Exports.Autofac_ package.
### Csv Export

Expand All @@ -242,9 +242,9 @@ The csv facilities, enable the users to export a list of objects to a CSv repres
To enable this for an application, install the package

```cmd
dotnet add package Easify.Exports
dotnet add package LittleBlocks.Exports
or
Install-Package Easify.Exports
Install-Package LittleBlocks.Exports
```

Now by setting up the Csv related set of classes in the container, It can be used by calling applications:
Expand Down

This file was deleted.

26 changes: 0 additions & 26 deletions src/Easify.Exports.Agent/Easify.Exports.Agent.csproj

This file was deleted.

25 changes: 0 additions & 25 deletions src/Easify.Exports.Autofac/Easify.Exports.Autofac.csproj

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions src/Easify.Exports.Client/Easify.Exports.Client.csproj

This file was deleted.

21 changes: 0 additions & 21 deletions src/Easify.Exports.Common/Easify.Exports.Common.csproj

This file was deleted.

Loading

0 comments on commit 3194174

Please sign in to comment.