Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
FiniteReality committed May 13, 2023
1 parent 526e77b commit 13f3179
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
configuration: [ Debug, Release ]

steps:
- uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.100-preview.2.23157.25

- name: Install dependencies
run: dotnet restore

- name: Build PipeDream
run: dotnet build --no-restore --configuration ${{ matrix.configuration }}

- name: Run unit tests
run: dotnet test --no-build --configuration ${{ matrix.configuration }}

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: PipeDream-${{ matrix.configuration }}
path: artifacts/bin/**/*

- name: Upload test results
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Unit Tests (${{ matrix.configuration }})
path: ${{ github.workspace }}/artifacts/tests/**/*.trx
reporter: dotnet-trx

0 comments on commit 13f3179

Please sign in to comment.