Skip to content

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.yml
index 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: true
jobs:
- 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.js
uses: actions/setup-node@v4
with:
node-version: '20'
- cache: 'npm'
- cache-dependency-path: apps/browser-extension/package-lock.json
- name: Build and distribute shared libraries
run: |
- 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 distribution
run: |
# Check if files exist and were recently modified
TARGET_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 dependencies
run: npm ci
@@ -100,6 +111,7 @@ jobs:
sha_short: ${{ steps.vars.outputs.sha_short }}
build-firefox-extension:
+ needs: build-shared-libraries
runs-on: ubuntu-latest
defaults:
run:
@@ -157,6 +169,7 @@ jobs:
sha_short: ${{ steps.vars.outputs.sha_short }}
build-edge-extension:
+ needs: build-shared-libraries
runs-on: ubuntu-latest
defaults:
run:
diff --git a/.github/workflows/dotnet-e2e-tests.yml b/.github/workflows/dotnet-e2e-tests.yml
index 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/server
run: dotnet build
- name: Start dev database
run: ./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/server
uses: nick-fields/retry@v3
with:
timeout_minutes: 60
max_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 Results
if: always()
@@ -67,17 +70,20 @@ jobs:
run: dotnet workload install wasm-tools
- name: Build
+ working-directory: apps/server
run: dotnet build
- name: Start dev database
run: ./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/server
uses: nick-fields/retry@v3
with:
timeout_minutes: 60
max_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.yml
index 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/server
run: dotnet build
- name: Start dev database
run: ./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 normal
diff --git a/.github/workflows/dotnet-unit-tests.yml b/.github/workflows/dotnet-unit-tests.yml
index 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/server
run: dotnet restore
- name: Build
+ working-directory: apps/server
run: 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 normal
diff --git a/.github/workflows/mobile-app-build.yml b/.github/workflows/mobile-app-build.yml
index 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 libraries
run: |
- 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 distribution
run: |
diff --git a/.github/workflows/sonarcloud-code-analysis.yml b/.github/workflows/sonarcloud-code-analysis.yml
index 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/server
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}