Skip to content

Commit

Permalink
Add skeleton files
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasohlund committed Mar 14, 2024
1 parent f23fbe1 commit 31dde4b
Show file tree
Hide file tree
Showing 31 changed files with 1,028 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
51 changes: 51 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Bug report
description: File a bug report
labels: ["Bug" ]
body:
- type: markdown
attributes:
value: |
For additional support options, or if this is related to a security vulnerability or sensitive information must be included in the bug report, visit [particular.net/support](https://particular.net/support).
- type: textarea
id: what-happened
attributes:
label: Describe the bug
description: A clear and concise description of the bug.
value: |
#### Description
#### Expected behavior
#### Actual behavior
#### Versions
Please list the version of the relevant packages or applications in which the bug exists.
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to reproduce
description: Detailed instructions to reproduce the bug.
validations:
required: true
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
- type: textarea
id: additional-information
attributes:
label: Additional Information
description: If there are any possible solutions, workarounds, or additional information please describe them here
value: |
#### Workarounds
#### Possible solutions
#### Additional information
validations:
required: false
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://discuss.particular.net/
about: Reach out to the ParticularDiscussion community.
- name: Get support
url: https://particular.net/support
about: Contact us to discuss your support requirements.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Feature request

description: Request a new feature.
labels: ["Feature" ]
body:
- type: markdown
attributes:
value: |
Please check all open and closed issues to see if the feature has already been requested.
- type: textarea
id: description
attributes:
label: Describe the feature.

description: A clear and concise description of the feature.

value: |
#### Is your feature related to a problem? Please describe.
#### Describe the requested feature
#### Describe alternatives you've considered
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Add any other context about the request.

placeholder: "Add screenshots or additional information."
validations:
required: false
- type: markdown
attributes:
value: |
For additional support options visit [particular.net/support](https://particular.net/support)
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/improvement_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Improvement request
description: Suggest an improvement to an existing code base.
labels: ["Improvement" ]
body:
- type: markdown
attributes:
value: |
Please check all open and closed issues to see if improvement has already been suggested.
- type: textarea
id: description
attributes:
label: Describe the suggested improvement
description: A clear and concise description of what the improvement is.
value: |
#### Is your improvement related to a problem? Please describe.
#### Describe the suggested solution
#### Describe alternatives you've considered
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Add any other context about the suggestion here.
placeholder: "Add screenshots or additional information."
validations:
required: false
- type: markdown
attributes:
value: |
For additional support options visit [particular.net/support](https://particular.net/support)
3 changes: 3 additions & 0 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Looking for Support

Check out our [support options](https://particular.net/support).
31 changes: 31 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2
updates:
- package-ecosystem: nuget
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 1000
groups:
AWSSDK:
patterns:
- "AWSSDK.*"
NServiceBusCore:
patterns:
- "NServiceBus"
- "NServiceBus.AcceptanceTesting"
- "NServiceBus.AcceptanceTests.Sources"
- "NServiceBus.PersistenceTests.Sources"
- "NServiceBus.TransportTests.Sources"
ignore:
# Particular.Analyzers updates are distributed via RepoStandards
- dependency-name: "Particular.Analyzers"
# Changing these 3 dependencies affects the .NET SDK and Visual Studio versions we support
# These types of updates should be more intentional than an automated update
- dependency-name: "Microsoft.Build.Utilities.Core"
- dependency-name: "Microsoft.CodeAnalysis.CSharp"
- dependency-name: "Microsoft.CodeAnalysis.CSharp.Workspaces"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 1000
28 changes: 28 additions & 0 deletions .github/workflows/approve-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Auto-approve AWSSDK dependency updates
on:
pull_request_target:
types: [ opened ]
permissions:
pull-requests: write
contents: write
jobs:
dependabot:
runs-on: ubuntu-latest
# Prevent run from failing on non-Dependabot PRs
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.6.0
- name: Approve PR
if: ${{contains(steps.metadata.outputs.dependency-names, 'AWSSDK.DynamoDBv2')}}
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge
if: ${{contains(steps.metadata.outputs.dependency-names, 'AWSSDK.DynamoDBv2')}}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
DOTNET_NOLOGO: true
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-2022
name: Windows
- os: ubuntu-22.04
name: Linux
fail-fast: false
steps:
- name: Check for secrets
env:
SECRETS_AVAILABLE: ${{ secrets.SECRETS_AVAILABLE }}
shell: pwsh
run: exit $(If ($env:SECRETS_AVAILABLE -eq 'true') { 0 } Else { 1 })
- name: Checkout
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build src --configuration Release
- name: Upload packages
if: matrix.name == 'Windows'
uses: actions/upload-artifact@v4.3.1
with:
name: NuGet packages
path: nugets/
retention-days: 7
- name: Run tests
uses: Particular/run-tests-action@v1.7.0
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-*'
env:
DOTNET_NOLOGO: true
jobs:
release:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build src --configuration Release
- name: Sign NuGet packages
uses: Particular/sign-nuget-packages-action@v1.0.0
with:
client-id: ${{ secrets.AZURE_KEY_VAULT_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_KEY_VAULT_TENANT_ID }}
client-secret: ${{ secrets.AZURE_KEY_VAULT_CLIENT_SECRET }}
certificate-name: ${{ secrets.AZURE_KEY_VAULT_CERTIFICATE_NAME }}
- name: Publish artifacts
uses: actions/upload-artifact@v4.3.1
with:
name: nugets
path: nugets/*
retention-days: 1
- name: Deploy
uses: Particular/push-octopus-package-action@v1.2.1
with:
octopus-deploy-api-key: ${{ secrets.OCTOPUS_DEPLOY_API_KEY }}
13 changes: 13 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: StaleBot
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
stalebot:
runs-on: ubuntu-latest
steps:
- name: Mark stale PRs
uses: Particular/stale-action@main
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/virus-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Virus scan
on:
release:
types: [published]
jobs:
virus-scan:
runs-on: ubuntu-latest
steps:
- name: Scan release for viruses
uses: Particular/virus-scan-action@main
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
tag: ${{ github.event.release.name }}
github-access-token: ${{ secrets.GITHUB_TOKEN }}
slack-token: ${{ secrets.SLACK_TOKEN }}
slack-channel: ${{ vars.VIRUS_REPORTING_SLACK_CHANNEL }}
Loading

0 comments on commit 31dde4b

Please sign in to comment.