Skip to content

Commit

Permalink
Merge branch 'main' into guibranco-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
gstraccini[bot] authored Jan 17, 2025
2 parents 3ba3d8b + 2e3b3e7 commit 0f1c7a9
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build

on:
push:
branches:
- '*'
- '*/*'
- '**'
- '!main'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

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

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Build solution
run: dotnet build -c Release

- name: Run tests
run: dotnet test -c Release --no-build --no-restore
24 changes: 24 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Linter check

on:
workflow_dispatch:
pull_request:

jobs:
linter-check:
runs-on: ubuntu-latest
steps:

- name: Checkout repo
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4

- name: Dotnet restore
run: dotnet tool restore

- name: CSharpier format check
run: |
dotnet csharpier . --check
echo "run 'dotnet csharpier .' to fix the formatting of the code automatically"
18 changes: 18 additions & 0 deletions .github/workflows/size-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Label based on PR size

on:
workflow_dispatch:
pull_request:

jobs:
size-label:
permissions:
pull-requests: write
runs-on: ubuntu-latest

steps:

- name: size-label
uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
18 changes: 18 additions & 0 deletions .github/workflows/sonarcloud-pixeebot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Fix SonarCloud Issues with Pixeebot
on:
check_run:
types: [completed]

permissions:
id-token: write

jobs:
share:
name: Upload Sonar Results to Pixeebot
runs-on: ubuntu-latest
if: ${{ github.event.check_run.name == 'SonarCloud Code Analysis' }}
steps:
- uses: pixee/upload-tool-results-action@v2
with:
tool: sonar
sonar-token: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 0f1c7a9

Please sign in to comment.