Skip to content

Commit

Permalink
add ci on prs (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasisnes authored Dec 2, 2024
1 parent acc1e00 commit 6369f06
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 11 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/pr-apps.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: "PR: Apps"

on:
pull_request:
paths:
- src/**
- .github/workflows/apps-*
- .github/workflows/infra-*
pull_request: {}

jobs:
find-verticals:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/pr-libs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
name: "PR: Libs"

on:
pull_request:
paths:
- src/**
- .github/workflows/libs-*
pull_request: {}

env:
DOTNET_VERSION: 8.0.x
DIR: src/libs
DIR: src/pkgs

jobs:
find-verticals:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/pr-pkgs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "PR: Pkgs"

on:
pull_request: {}

jobs:
find-verticals:
uses: ./.github/workflows/_find-verticals.yml
with:
type: pkg

ci:
name: CI
runs-on: ubuntu-latest
needs: find-verticals
strategy:
matrix: ${{ fromJson(needs.find-verticals.outputs.matrix) }}

steps:
- uses: actions/checkout@v4
- name: Install .NET
uses: actions/setup-dotnet@v4

- name: Build
working-directory: ${{ matrix.path }}
run: dotnet build

- name: Test
if: always()
working-directory: ${{ matrix.path }}
run: dotnet test --no-build

0 comments on commit 6369f06

Please sign in to comment.