Skip to content

Commit

Permalink
Updated ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ben_pollard committed Dec 21, 2023
1 parent b593dbd commit fb77752
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/dotnet.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# main ci workflow is to ensure the codebase builds.
# all unit tests must pass for the workflow to complete successfully.

name: main-ci

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "0 7 * * *"
workflow_dispatch:

permissions:
contents: read

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 5.0.100

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release

- name: Test
run: dotnet test --configuration Release --no-restore

- name: Publish test results
uses: actions/upload-artifact@v2
with:
name: test-results
path: '**/TestResults/*.xml'

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit fb77752

Please sign in to comment.