1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00

[BRE-372] - Clean up document start (#4915)

This commit is contained in:
Opeyemi 2024-10-21 13:11:59 +01:00 committed by GitHub
parent 27760bd190
commit c809794642
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 9 additions and 20 deletions

View File

@ -1,4 +1,3 @@
---
name: _move_finalization_db_scripts name: _move_finalization_db_scripts
run-name: Move finalization database scripts run-name: Move finalization database scripts

View File

@ -1,4 +1,3 @@
---
name: Automatic responses name: Automatic responses
on: on:
issues: issues:

View File

@ -1,4 +1,3 @@
---
name: Build name: Build
on: on:
@ -408,7 +407,7 @@ jobs:
name: swagger.json name: swagger.json
path: swagger.json path: swagger.json
if-no-files-found: error if-no-files-found: error
- name: Build Internal API Swagger - name: Build Internal API Swagger
run: | run: |
cd ./src/Api cd ./src/Api
@ -416,17 +415,17 @@ jobs:
dotnet tool restore dotnet tool restore
echo "Publish API" echo "Publish API"
dotnet publish -c "Release" -o obj/build-output/publish dotnet publish -c "Release" -o obj/build-output/publish
dotnet swagger tofile --output ../../internal.json --host https://api.bitwarden.com \ dotnet swagger tofile --output ../../internal.json --host https://api.bitwarden.com \
./obj/build-output/publish/Api.dll internal ./obj/build-output/publish/Api.dll internal
cd ../Identity cd ../Identity
echo "Restore Identity tools" echo "Restore Identity tools"
dotnet tool restore dotnet tool restore
echo "Publish Identity" echo "Publish Identity"
dotnet publish -c "Release" -o obj/build-output/publish dotnet publish -c "Release" -o obj/build-output/publish
dotnet swagger tofile --output ../../identity.json --host https://identity.bitwarden.com \ dotnet swagger tofile --output ../../identity.json --host https://identity.bitwarden.com \
./obj/build-output/publish/Identity.dll v1 ./obj/build-output/publish/Identity.dll v1
cd ../.. cd ../..
@ -448,7 +447,7 @@ jobs:
with: with:
name: identity.json name: identity.json
path: identity.json path: identity.json
if-no-files-found: error if-no-files-found: error
build-mssqlmigratorutility: build-mssqlmigratorutility:
name: Build MSSQL migrator utility name: Build MSSQL migrator utility
@ -565,7 +564,7 @@ jobs:
tag: 'main' tag: 'main'
} }
}) })
trigger-ee-updates: trigger-ee-updates:
name: Trigger Ephemeral Environment updates name: Trigger Ephemeral Environment updates
if: github.ref != 'refs/heads/main' && contains(github.event.pull_request.labels.*.name, 'ephemeral-environment') if: github.ref != 'refs/heads/main' && contains(github.event.pull_request.labels.*.name, 'ephemeral-environment')

View File

@ -1,4 +1,3 @@
---
name: Container registry cleanup name: Container registry cleanup
on: on:

View File

@ -1,4 +1,3 @@
---
name: Cleanup RC Branch name: Cleanup RC Branch
on: on:

View File

@ -1,4 +1,3 @@
---
name: Enforce PR labels name: Enforce PR labels
on: on:

View File

@ -1,7 +1,6 @@
# Runs if there are changes to the paths: list. # Runs if there are changes to the paths: list.
# Starts a matrix job to check for modified files, then sets output based on the results. # Starts a matrix job to check for modified files, then sets output based on the results.
# The input decides if the label job is ran, adding a label to the PR. # The input decides if the label job is ran, adding a label to the PR.
---
name: Protect files name: Protect files
on: on:

View File

@ -1,4 +1,3 @@
---
name: Publish name: Publish
run-name: Publish ${{ inputs.publish_type }} run-name: Publish ${{ inputs.publish_type }}

View File

@ -1,4 +1,3 @@
---
name: Release name: Release
run-name: Release ${{ inputs.release_type }} run-name: Release ${{ inputs.release_type }}

View File

@ -1,4 +1,3 @@
---
name: Staleness name: Staleness
on: on:
workflow_dispatch: workflow_dispatch:

View File

@ -1,4 +1,3 @@
---
name: Database testing name: Database testing
on: on:
@ -55,7 +54,7 @@ jobs:
# I've seen the SQL Server container not be ready for commands right after starting up and just needing a bit longer to be ready # I've seen the SQL Server container not be ready for commands right after starting up and just needing a bit longer to be ready
- name: Sleep - name: Sleep
run: sleep 15s run: sleep 15s
- name: Checking pending model changes (MySQL) - name: Checking pending model changes (MySQL)
working-directory: "util/MySqlMigrations" working-directory: "util/MySqlMigrations"
run: 'dotnet ef migrations has-pending-model-changes -- --GlobalSettings:MySql:ConnectionString="$CONN_STR"' run: 'dotnet ef migrations has-pending-model-changes -- --GlobalSettings:MySql:ConnectionString="$CONN_STR"'
@ -114,7 +113,7 @@ jobs:
BW_TEST_DATABASES__3__CONNECTIONSTRING: "Data Source=${{ runner.temp }}/test.db" BW_TEST_DATABASES__3__CONNECTIONSTRING: "Data Source=${{ runner.temp }}/test.db"
run: dotnet test --logger "trx;LogFileName=infrastructure-test-results.trx" run: dotnet test --logger "trx;LogFileName=infrastructure-test-results.trx"
shell: pwsh shell: pwsh
- name: Print MySQL Logs - name: Print MySQL Logs
if: failure() if: failure()
run: 'docker logs $(docker ps --quiet --filter "name=mysql")' run: 'docker logs $(docker ps --quiet --filter "name=mysql")'