Skip to content

Commit 9abd203

Browse files
committed
GithubCI: add dev certificate before e2e tests
Add HTTPS dev certificate right before running end-to-end tests. Don't use `--trust` option.
1 parent ac3058a commit 9abd203

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ jobs:
3636
apt install --yes --no-install-recommends ca-certificates
3737
3838
apt install --yes --no-install-recommends dotnet8
39-
40-
# Trust ASP.NET Core HTTPS development certificate so that GRPC server can be contacted through HTTPS.
41-
# HTTPS connection is used in end-to-end GRPC tests.
42-
dotnet dev-certs https
43-
sudo -E dotnet dev-certs https --trust --format PEM
44-
sudo update-ca-certificates
4539
4640
- name: Restore nuget dependencies
4741
run: dotnet restore
@@ -55,7 +49,14 @@ jobs:
5549
redis-server --daemonize yes
5650
5751
- name: Run tests
58-
run: dotnet test
52+
run: |
53+
# Trust ASP.NET Core HTTPS development certificate so that GRPC server can be contacted through HTTPS.
54+
# HTTPS connection is used in end-to-end GRPC tests.
55+
dotnet dev-certs https
56+
sudo -E dotnet dev-certs https --format PEM
57+
sudo update-ca-certificates
58+
59+
dotnet test
5960
6061
buildAndTest-windows:
6162
name: Build (Windows)

0 commit comments

Comments
 (0)