Skip to content

Commit

Permalink
GithubCI: add dev certificate before e2e tests
Browse files Browse the repository at this point in the history
Add HTTPS dev certificate right before running end-to-end
tests.
  • Loading branch information
webwarrior-ws committed Nov 21, 2024
1 parent ac3058a commit 34a2b15
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ jobs:
apt install --yes --no-install-recommends ca-certificates
apt install --yes --no-install-recommends dotnet8
# Trust ASP.NET Core HTTPS development certificate so that GRPC server can be contacted through HTTPS.
# HTTPS connection is used in end-to-end GRPC tests.
dotnet dev-certs https
sudo -E dotnet dev-certs https --trust --format PEM
sudo update-ca-certificates
- name: Restore nuget dependencies
run: dotnet restore
Expand All @@ -55,7 +49,14 @@ jobs:
redis-server --daemonize yes
- name: Run tests
run: dotnet test
run: |
# Trust ASP.NET Core HTTPS development certificate so that GRPC server can be contacted through HTTPS.
# HTTPS connection is used in end-to-end GRPC tests.
dotnet dev-certs https
sudo -E dotnet dev-certs https --trust --format PEM
sudo update-ca-certificates
dotnet test
buildAndTest-windows:
name: Build (Windows)
Expand Down

0 comments on commit 34a2b15

Please sign in to comment.