Skip to content

Commit

Permalink
ci: add dotnet build/test ci action (#721)
Browse files Browse the repository at this point in the history
Co-authored-by: ken-mellem <[email protected]>
Co-authored-by: Kjetil Haugland <[email protected]>
  • Loading branch information
3 people authored Sep 6, 2024
1 parent 482ba6d commit 6f0c045
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .changeset/pr-721-2043314279.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

---
---
13 changes: 10 additions & 3 deletions .github/workflows/backend-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@ on:
jobs:
echo:
name: Backend pr job
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- name: Write your own steps here
run: echo "----- Need Implementation ----"
- name: Checkout
uses: actions/checkout@v4

- name: Dotnet build
shell: bash
run: dotnet build ./backend/src/Equinor.ProjectExecutionPortal.sln

- name: Dotnet test
shell: bash
run: dotnet test ./backend/src/Equinor.ProjectExecutionPortal.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
},
"Authenticator": {
"Instance": "https://login.microsoftonline.com/3aa4a235-b6e2-48d5-9195-7fcf05b459b0", // Equinor
"ProjectPortalApiClientId": "", // This app's AppReg key
"ProjectPortalApiClientId": "guid", // This app's AppReg key
"ProjectPortalApiSecret": "" // This app's AppReg secret
},
"Swagger": {
"AuthorizationUrl": "https://login.microsoftonline.com/3aa4a235-b6e2-48d5-9195-7fcf05b459b0/oauth2/v2.0/authorize",
"TokenUrl": "https://login.microsoftonline.com/3aa4a235-b6e2-48d5-9195-7fcf05b459b0/oauth2/v2.0/token",
"ClientId": "", // AppReg key for Swagger Client for this app
"ClientId": "guid", // AppReg key for Swagger Client for this app
"Scope": "access_as_user"
},
"FusionPortalApi": {
Expand All @@ -25,12 +25,12 @@
"Environment": "ci"
},
"AzureAd": {
"ClientId": "", // This app's AppReg key
"ClientId": "guid", // This app's AppReg key
"TenantId": "3aa4a235-b6e2-48d5-9195-7fcf05b459b0",
"Instance": "https://login.microsoftonline.com",
"CallbackPath": "/signin-oidc",
"SignedOutCallbackPath ": "/signout-callback-oidc",
"ClientSecret": ""
"ClientSecret": "hushhush"
},
"AssetProxy": {
"FusionPortalUrl": "",
Expand Down
1 change: 1 addition & 0 deletions backend/src/Equinor.ProjectExecutionPortal.sln
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 12.00

# Visual Studio Version 17
VisualStudioVersion = 17.3.32825.248
MinimumVisualStudioVersion = 10.0.40219.1
Expand Down

0 comments on commit 6f0c045

Please sign in to comment.