mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
2.3 KiB
92 lines
2.3 KiB
name: "build and test"
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
paths:
|
|
- 'framework/**/*.cs'
|
|
- 'framework/**/*.cshtml'
|
|
- 'framework/**/*.csproj'
|
|
- 'framework/**/*.razor'
|
|
- 'modules/**/*.cs'
|
|
- 'modules/**/*.cshtml'
|
|
- 'modules/**/*.csproj'
|
|
- 'modules/**/*.razor'
|
|
- 'templates/**/*.cs'
|
|
- 'templates/**/*.cshtml'
|
|
- 'templates/**/*.csproj'
|
|
- 'templates/**/*.razor'
|
|
- 'Directory.Build.props'
|
|
- 'Directory.Packages.props'
|
|
- '.github/workflows/build-and-test.yml'
|
|
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
- 'rel-*'
|
|
paths:
|
|
- 'framework/**/*.cs'
|
|
- 'framework/**/*.cshtml'
|
|
- 'framework/**/*.csproj'
|
|
- 'framework/**/*.razor'
|
|
- 'modules/**/*.cs'
|
|
- 'modules/**/*.cshtml'
|
|
- 'modules/**/*.csproj'
|
|
- 'modules/**/*.razor'
|
|
- 'templates/**/*.cs'
|
|
- 'templates/**/*.cshtml'
|
|
- 'templates/**/*.csproj'
|
|
- 'templates/**/*.razor'
|
|
- 'Directory.Build.props'
|
|
- 'Directory.Packages.props'
|
|
- '.github/workflows/build-and-test.yml'
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
- ready_for_review
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
|
|
jobs:
|
|
build-test:
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 50
|
|
if: ${{ !github.event.pull_request.draft }}
|
|
steps:
|
|
- uses: jlumbroso/free-disk-space@v1.3.1
|
|
- name: Install PowerShell
|
|
run: sudo apt-get install -y powershell
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 10.0.x
|
|
- name: Cache NuGet packages
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.nuget/packages
|
|
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', 'Directory.Packages.props') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-nuget-
|
|
- name: Build All
|
|
run: ./build-all.ps1
|
|
working-directory: ./build
|
|
shell: pwsh
|
|
|
|
- name: Test All
|
|
run: ./test-all.ps1
|
|
working-directory: ./build
|
|
shell: pwsh
|
|
|
|
- name: Codecov
|
|
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
|
|
uses: codecov/codecov-action@v5
|
|
with:
|
|
use_oidc: true
|
|
fail_ci_if_error: true
|
|
|