Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update GitHub workflows (#771)
Leendert de Borsteae70b41f11e
diff --git a/.github/workflows/browser-extension-build.yml b/.github/workflows/browser-extension-build.ymlindex a41849b7c..cdbfbb594 100644--- a/.github/workflows/browser-extension-build.yml+++ b/.github/workflows/browser-extension-build.yml@@ -12,38 +12,28 @@ concurrency:cancel-in-progress: truejobs:- build-chrome-extension:+ build-shared-libraries:runs-on: ubuntu-latest- defaults:- run:- working-directory: apps/browser-extension-steps:- uses: actions/checkout@v4- - name: Get short SHA- id: vars- run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT-- name: Setup Node.jsuses: actions/setup-node@v4with:node-version: '20'- cache: 'npm'- cache-dependency-path: apps/browser-extension/package-lock.json- name: Build and distribute shared librariesrun: |- cd ../../- chmod +x shared/build-and-distribute.sh- ./shared/build-and-distribute.sh+ cd ./shared+ chmod +x build-and-distribute.sh+ ./build-and-distribute.sh- name: Verify shared library distributionrun: |# Check if files exist and were recently modifiedTARGET_DIRS=(- "utils/shared/identity-generator"- "utils/shared/password-generator"+ "apps/browser-extension/src/utils/shared/identity-generator"+ "apps/browser-extension/src/utils/shared/password-generator")for dir in "${TARGET_DIRS[@]}"; do@@ -70,6 +60,27 @@ jobs:echo "✅ Shared library distribution verified"+ build-chrome-extension:+ needs: build-shared-libraries+ runs-on: ubuntu-latest+ defaults:+ run:+ working-directory: apps/browser-extension++ steps:+ - uses: actions/checkout@v4++ - name: Get short SHA+ id: vars+ run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT++ - name: Setup Node.js+ uses: actions/setup-node@v4+ with:+ node-version: '20'+ cache: 'npm'+ cache-dependency-path: apps/browser-extension/package-lock.json+- name: Install dependenciesrun: npm ci@@ -100,6 +111,7 @@ jobs:sha_short: ${{ steps.vars.outputs.sha_short }}build-firefox-extension:+ needs: build-shared-librariesruns-on: ubuntu-latestdefaults:run:@@ -157,6 +169,7 @@ jobs:sha_short: ${{ steps.vars.outputs.sha_short }}build-edge-extension:+ needs: build-shared-librariesruns-on: ubuntu-latestdefaults:run:diff --git a/.github/workflows/dotnet-e2e-tests.yml b/.github/workflows/dotnet-e2e-tests.ymlindex a4fb6d600..083406ad4 100644--- a/.github/workflows/dotnet-e2e-tests.yml+++ b/.github/workflows/dotnet-e2e-tests.yml@@ -26,20 +26,23 @@ jobs:run: dotnet workload install wasm-tools- name: Build+ working-directory: apps/serverrun: dotnet build- name: Start dev databaserun: ./install.sh configure-dev-db start- name: Ensure browsers are installed- run: pwsh apps/server/Tests/AliasVault.E2ETests/bin/Debug/net9.0/playwright.ps1 install --with-deps+ working-directory: apps/server+ run: pwsh Tests/AliasVault.E2ETests/bin/Debug/net9.0/playwright.ps1 install --with-deps- name: Run AdminTests with retry+ working-directory: apps/serveruses: nick-fields/retry@v3with:timeout_minutes: 60max_attempts: 3- command: dotnet test apps/server/Tests/AliasVault.E2ETests --no-build --verbosity normal --filter "Category=AdminTests"+ command: dotnet test Tests/AliasVault.E2ETests --no-build --verbosity normal --filter "Category=AdminTests"- name: Upload Test Resultsif: always()@@ -67,17 +70,20 @@ jobs:run: dotnet workload install wasm-tools- name: Build+ working-directory: apps/serverrun: dotnet build- name: Start dev databaserun: ./install.sh configure-dev-db start- name: Ensure browsers are installed- run: pwsh apps/server/Tests/AliasVault.E2ETests/bin/Debug/net9.0/playwright.ps1 install --with-deps+ working-directory: apps/server+ run: pwsh Tests/AliasVault.E2ETests/bin/Debug/net9.0/playwright.ps1 install --with-deps- name: Run ClientTests with retry (Shard ${{ matrix.shard }})+ working-directory: apps/serveruses: nick-fields/retry@v3with:timeout_minutes: 60max_attempts: 3- command: dotnet test apps/server/Tests/AliasVault.E2ETests --no-build --verbosity normal --filter "FullyQualifiedName~.E2ETests.Tests.Client.Shard${{ matrix.shard }}."+ command: dotnet test Tests/AliasVault.E2ETests --no-build --verbosity normal --filter "FullyQualifiedName~.E2ETests.Tests.Client.Shard${{ matrix.shard }}."diff --git a/.github/workflows/dotnet-integration-tests.yml b/.github/workflows/dotnet-integration-tests.ymlindex 7d06a64bd..46c9fda76 100644--- a/.github/workflows/dotnet-integration-tests.yml+++ b/.github/workflows/dotnet-integration-tests.yml@@ -27,10 +27,12 @@ jobs:run: dotnet workload install wasm-tools- name: Build+ working-directory: apps/serverrun: dotnet build- name: Start dev databaserun: ./install.sh configure-dev-db start- name: Run integration tests- run: dotnet test apps/server/Tests/AliasVault.IntegrationTests --no-build --verbosity normal+ working-directory: apps/server+ run: dotnet test Tests/AliasVault.IntegrationTests --no-build --verbosity normaldiff --git a/.github/workflows/dotnet-unit-tests.yml b/.github/workflows/dotnet-unit-tests.ymlindex ea16c7ba2..12b9f39b3 100644--- a/.github/workflows/dotnet-unit-tests.yml+++ b/.github/workflows/dotnet-unit-tests.yml@@ -26,10 +26,13 @@ jobs:run: dotnet workload install wasm-tools- name: Restore dependencies+ working-directory: apps/serverrun: dotnet restore- name: Build+ working-directory: apps/serverrun: dotnet build --no-restore- name: Run unittests- run: dotnet test apps/server/Tests/AliasVault.UnitTests --no-build --verbosity normal+ working-directory: apps/server+ run: dotnet test Tests/AliasVault.UnitTests --no-build --verbosity normaldiff --git a/.github/workflows/mobile-app-build.yml b/.github/workflows/mobile-app-build.ymlindex d0690efec..86c54bdcf 100644--- a/.github/workflows/mobile-app-build.yml+++ b/.github/workflows/mobile-app-build.yml@@ -30,9 +30,9 @@ jobs:- name: Build and distribute shared librariesrun: |- cd ../../- chmod +x shared/build-and-distribute.sh- ./shared/build-and-distribute.sh+ cd ../../shared+ chmod +x build-and-distribute.sh+ ./build-and-distribute.sh- name: Verify shared library distributionrun: |diff --git a/.github/workflows/sonarcloud-code-analysis.yml b/.github/workflows/sonarcloud-code-analysis.ymlindex e8acb1b56..ff8a57557 100644--- a/.github/workflows/sonarcloud-code-analysis.yml+++ b/.github/workflows/sonarcloud-code-analysis.yml@@ -58,6 +58,7 @@ jobs:dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner- name: Build and analyze+ working-directory: apps/serverenv:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}