diff options
| author | Albin <albin@mullvad.net> | 2024-06-17 10:53:22 +0200 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2024-06-17 15:05:03 +0200 |
| commit | bd19baca13ab86888bcfb2a2bd6710bb4a41f7d6 (patch) | |
| tree | 6aa796fc71ee54bb5048250032a0d2ad992c3455 /.github/workflows | |
| parent | 666886b12bfbedb2f7500c2f145f31426c4ba138 (diff) | |
| download | mullvadvpn-bd19baca13ab86888bcfb2a2bd6710bb4a41f7d6.tar.xz mullvadvpn-bd19baca13ab86888bcfb2a2bd6710bb4a41f7d6.zip | |
Add action to ensure clean lockfile
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/android-audit.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/android-audit.yml b/.github/workflows/android-audit.yml index 2945273efc..e40111b469 100644 --- a/.github/workflows/android-audit.yml +++ b/.github/workflows/android-audit.yml @@ -7,6 +7,7 @@ on: - android/gradle/verification-metadata.xml - android/config/dependency-check-suppression.xml - android/test/test-suppression.xml + - android/scripts/update-lockfile.sh schedule: # At 06:20 UTC every day. # Notifications for scheduled workflows are sent to the user who last modified the cron @@ -59,3 +60,33 @@ jobs: - name: Run gradle audit task run: android/gradlew -p android dependencyCheckAnalyze + + ensure-clean-lockfile: + needs: prepare + name: Ensure clean lockfile + runs-on: ubuntu-latest + container: + image: ${{ needs.prepare.outputs.container_image }} + steps: + # Fix for HOME path overridden by GH runners when building in containers, see: + # https://github.com/actions/runner/issues/863 + - name: Fix HOME path + run: echo "HOME=/root" >> $GITHUB_ENV + + - name: Set locale + run: echo "LC_ALL=C.UTF-8" >> $GITHUB_ENV + + - uses: actions/checkout@v3 + + - name: Fix git dir + run: git config --global --add safe.directory $(pwd) + + # Needed until we improve the build system. + - name: Create dummy jni dir + run: mkdir -p android/app/build/extraJni + + - name: Re-generate lockfile + run: android/scripts/update-lockfile.sh + + - name: Ensure no changes + run: git diff --exit-code |
