Skip to content

Commit

Permalink
Move build into a separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
skibitsky committed Dec 12, 2023
1 parent f6db727 commit 84fe350
Showing 1 changed file with 29 additions and 14 deletions.
43 changes: 29 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,55 @@ on:
push:
branches: [ main, '2.0' ]
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
test-type: [unit-tests, integration-tests]


steps:
- uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
6.0.x
- name: Restore dependencies
run: dotnet restore
working-directory: ./

- name: Build
run: dotnet build --no-restore
working-directory: ./

- name: Run tests
uses: ./.github/actions/ci
with:
type: ${{ matrix.test-type }}
project-id: ${{ secrets.PROJECT_ID }}


- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: |
**/bin/**/*.dll
!**/Core Modules/**/bin/**/*.dll
!**/Tests/**/bin/**/*.dll
!**/Tests/**/bin/**/*.dll
test:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
test-type: [unit-tests, integration-tests]

steps:
- uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
6.0.x
- name: Run tests
uses: ./.github/actions/ci
with:
type: ${{ matrix.test-type }}
project-id: ${{ secrets.PROJECT_ID }}

0 comments on commit 84fe350

Please sign in to comment.