Skip to content

Merge pull request #148 from rGunti/81-feature-sub-alerts #340

Merge pull request #148 from rGunti/81-feature-sub-alerts

Merge pull request #148 from rGunti/81-feature-sub-alerts #340

Workflow file for this run

name: Build & Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build & Test Project
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: |
dotnet restore src/FloppyBot.sln
- name: Build
run: dotnet build --no-restore src/FloppyBot.sln
- name: Test
uses: zyborg/dotnet-tests-report@v1
with:
project_path: src/FloppyBot.sln
report_name: floppybot_v2_tests
report_title: FloppyBot v2 Tests
github_token: ${{ secrets.GITHUB_TOKEN }}
code-style:
name: Check Code Style
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: |
dotnet restore src/FloppyBot.sln
dotnet tool restore
- name: Check Code Format
run: |
dotnet csharpier --check src/
- name: Check Code Style
run: |
dotnet format style --verify-no-changes src/
- name: Run Format Analyzer
run: |
dotnet format analyzers --verify-no-changes src/