-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50be799
commit 015a8aa
Showing
8 changed files
with
133 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Apps CI | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
paths: | ||
- src/** | ||
- .github/workflows/apps-* | ||
|
||
env: | ||
DOTNET_VERSION: 8.0.x | ||
APPS_DIR: src/apps | ||
|
||
jobs: | ||
bundle: | ||
name: Bundle Apps | ||
uses: ./.github/workflows/template-bundle.yml | ||
with: | ||
dir: apps | ||
|
||
ci: | ||
name: CI | ||
runs-on: ubuntu-latest | ||
needs: bundle | ||
strategy: | ||
matrix: | ||
name: ${{ fromJson(needs.bundle.outputs.dirs) }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install .NET ${{ env.DOTNET_VERSION }} | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: Build | ||
working-directory: ${{ env.APPS_DIR }}/${{ matrix.name }} | ||
run: dotnet build | ||
|
||
- name: Test | ||
if: always() | ||
working-directory: src/apps/${{ matrix.name }} | ||
run: dotnet test --no-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: bundle-template.yml | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
dirs: | ||
value: ${{ jobs.bundle.outputs.names }} | ||
description: JSON list of folders in either <apps, pkgs, libs> | ||
|
||
inputs: | ||
dir: | ||
required: true | ||
description: <apps, pkgs, libs> | ||
type: string | ||
|
||
jobs: | ||
bundle: | ||
name: Bundle Apps | ||
runs-on: ubuntu-latest | ||
outputs: | ||
names: ${{ steps.list.outputs.result }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: List ${{ inputs.dir }} | ||
id: list | ||
working-directory: src/${{ inputs.dir }} | ||
run: | | ||
result=$(find . -maxdepth 1 -type d -not -path '.' -printf '%P\n' | jq -R -s -c 'split("\n")[:-1]') | ||
echo "result=$result" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Libs CI | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
paths: | ||
- src/** | ||
- .github/workflows/libs-* | ||
|
||
env: | ||
DOTNET_VERSION: 8.0.x | ||
DIR: src/libs | ||
|
||
jobs: | ||
bundle: | ||
name: Bundle Libs | ||
uses: ./.github/workflows/template-bundle.yml | ||
with: | ||
dir: libs | ||
|
||
ci: | ||
name: CI | ||
runs-on: ubuntu-latest | ||
needs: bundle | ||
strategy: | ||
matrix: | ||
name: ${{ fromJson(needs.bundle.outputs.dirs) }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install .NET ${{ env.DOTNET_VERSION }} | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: Build | ||
working-directory: ${{ env.DIR }}/${{ matrix.name }} | ||
run: dotnet build | ||
|
||
- name: Test | ||
if: always() | ||
working-directory: src/apps/${{ matrix.name }} | ||
run: dotnet test --no-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters