Skip to content

Commit

Permalink
ci: refactor continuous integration
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanpth committed Sep 27, 2024
1 parent b15e886 commit 6957ea6
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 24 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on: [push, pull_request]
name: Continuous Integration
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8

- name: Format
working-directory: src
run: |
dotnet format --verify-no-changes --verbosity diagnostic
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8

- name: Compile
working-directory: src/AdvancedBot.Console
run: |
dotnet build -c Release -warnaserror
24 changes: 0 additions & 24 deletions .github/workflows/console.yaml

This file was deleted.

0 comments on commit 6957ea6

Please sign in to comment.