Skip to content

Commit

Permalink
CI with secret.
Browse files Browse the repository at this point in the history
  • Loading branch information
chullybun committed Oct 26, 2023
1 parent ea5473f commit 5bf6179
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
APPLICATIONINSIGHTS_CONNECTION_STRING: ${{ secrets.APPLICATIONINSIGHTS_CONNECTION_STRING }}

services:
sql:
Expand All @@ -25,7 +27,7 @@ jobs:
options: --name sqlserver

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3
Expand Down Expand Up @@ -128,7 +130,6 @@ jobs:
- name: Set environment variables
run: |
echo "APPLICATIONINSIGHTS_CONNECTION_STRING=rubbish-to-see-what-happens" >> $GITHUB_ENV
echo "My_Hr_ConnectionStrings__Database=Data Source=localhost,1433;Initial Catalog=My.Hr;User id=sa;Password=sAPWD23.^0;TrustServerCertificate=true" >> $GITHUB_ENV
echo "MyEf_Hr_ConnectionStrings__Database=Data Source=localhost,1433;Initial Catalog=MyEf.Hr;User id=sa;Password=sAPWD23.^0;TrustServerCertificate=true" >> $GITHUB_ENV
Expand All @@ -143,4 +144,4 @@ jobs:
- name: Verify 'Samples/MyEf.Hr' testing
run: |
dotnet test ./samples/MyEf.Hr/MyEf.Hr.Test --no-build --verbosity normal
dotnet test ./samples/MyEf.Hr/MyEf.Hr.Security.Test --no-build --verbosity normal
dotnet test ./samples/MyEf.Hr/MyEf.Hr.Security.Test --no-build --verbosity normal

0 comments on commit 5bf6179

Please sign in to comment.