Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ci on prs #124

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading