-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added github action to run a subset of tests (#7328)
* Added github action to run a subset of tests * SkipUnstableEmulators * Fix pgweb test * Try ci true * Get the bin log * Fix? * ?? * Moar perms * This? * ContinuousIntegrationBuild * Remove CIBuild property since this isn't running in AzDO * Try using build.sh instead to restore arcade * Remove from tests too * Remove -ci * create binlog to upload * Try setting CI to false * Fix * Add missing projects parameter * append githubworkspace to project path * Add missing dollar sign * Fix test step * Skip Oracle tests that shouldn't run based on ActiveIssue * Skipping Aspire.Hosting.Test * Stop building all of the repo and try to fix test not being able to fetch basedirectory * Debug Output for AzureFunctionsTest * Enabling project reference which is currently disabled. * Disable Azure Functions test from CI * Disabling playground tests to investigate Azure Functions test --------- Co-authored-by: Eric Erhardt <[email protected]> Co-authored-by: Jose Perez Rodriguez <[email protected]>
- Loading branch information
1 parent
e0079f9
commit d910655
Showing
5 changed files
with
112 additions
and
7 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,89 @@ | ||
name: Run Integration Tests | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- project: tests/Aspire.Hosting.Elasticsearch.Tests/Aspire.Hosting.Elasticsearch.Tests.csproj | ||
name: Elasticsearch | ||
- project: tests/Aspire.Hosting.PostgreSQL.Tests/Aspire.Hosting.PostgreSQL.Tests.csproj | ||
name: PostgreSQL | ||
- project: tests/Aspire.Hosting.Oracle.Tests/Aspire.Hosting.Oracle.Tests.csproj | ||
name: Oracle | ||
- project: tests/Aspire.Hosting.Kafka.Tests/Aspire.Hosting.Kafka.Tests.csproj | ||
name: Kafka | ||
- project: tests/Aspire.Hosting.Tests/Aspire.Hosting.Tests.csproj | ||
name: Hosting | ||
- project: tests/Aspire.Hosting.Redis.Tests/Aspire.Hosting.Redis.Tests.csproj | ||
name: Redis | ||
- project: tests/Aspire.Hosting.Azure.Tests/Aspire.Hosting.Azure.Tests.csproj | ||
name: Azure | ||
# - project: tests/Aspire.Playground.Tests/Aspire.Playground.Tests.csproj | ||
# name: Playground | ||
# Add more projects as needed | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up .NET Core | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: | | ||
8.x | ||
9.x | ||
- name: Trust HTTPS development certificate | ||
run: dotnet dev-certs https --trust | ||
|
||
- name: Verify Docker is running | ||
run: docker info | ||
|
||
- name: Install Azure Functions Core Tools | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y azure-functions-core-tools-4 | ||
- name: Build test project | ||
run: | | ||
export CI=false && ./build.sh -restore -ci -build -projects ${{ github.workspace }}/${{ matrix.project }} /bl | ||
- name: Run tests | ||
id: run-tests | ||
run: | | ||
export CI=false && ./dotnet.sh test ${{ github.workspace }}/${{ matrix.project }} \ | ||
/p:ContinuousIntegrationBuild=true \ | ||
-s eng/testing/.runsettings \ | ||
--logger "console;verbosity=normal" \ | ||
--logger "trx" \ | ||
--logger html \ | ||
--blame \ | ||
--blame-hang-timeout 7m \ | ||
--results-directory testresults \ | ||
--no-restore \ | ||
--no-build | ||
- name: Compress test results | ||
if: always() | ||
run: zip -r testresults.zip testresults | ||
|
||
- name: Upload bin log artifact | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: binlog-${{ matrix.name }} | ||
path: "**/*.binlog" | ||
|
||
- name: Upload test results artifact | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: testresults-${{ matrix.name }} | ||
path: testresults.zip |
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