Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add dotnet build/test ci action #721

Merged
merged 5 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

det skal være hushhush?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For at testene skal kjøre må feltet være populert. I praksis benyttes det ikke, og verdien kan være hva som helst

},
"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
Loading