From d19829b845f947043dc274a83260644339b4a129 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 13 Jun 2024 09:49:27 +0200 Subject: [PATCH] Apply quality checks to Element Enterprise modules. --- .github/workflows/danger.yml | 6 ++++++ .github/workflows/quality.yml | 36 +++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index 4d71f56617..405bb346c5 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -8,6 +8,12 @@ jobs: name: Danger main check steps: - uses: actions/checkout@v4 + - name: Add SSH private keys for submodule repositories + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} + - name: Clone submodules + run: git submodule update --init --recursive - run: | npm install --save-dev @babel/plugin-transform-flow-strip-types - name: Danger diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 1c3ab1d7d5..52a0b10572 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -18,6 +18,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Add SSH private keys for submodule repositories + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} + - name: Clone submodules + run: git submodule update --init --recursive - name: Run code quality check suite run: ./tools/check/check_code_quality.sh @@ -68,6 +74,12 @@ jobs: # Ensure we are building the branch and not the branch after being merged on develop # https://github.com/actions/checkout/issues/881 ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} + - name: Add SSH private keys for submodule repositories + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} + - name: Clone submodules + run: git submodule update --init --recursive - name: Use JDK 17 uses: actions/setup-java@v4 with: @@ -100,6 +112,12 @@ jobs: # Ensure we are building the branch and not the branch after being merged on develop # https://github.com/actions/checkout/issues/881 ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} + - name: Add SSH private keys for submodule repositories + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} + - name: Clone submodules + run: git submodule update --init --recursive - name: Use JDK 17 uses: actions/setup-java@v4 with: @@ -136,6 +154,12 @@ jobs: # Ensure we are building the branch and not the branch after being merged on develop # https://github.com/actions/checkout/issues/881 ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} + - name: Add SSH private keys for submodule repositories + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} + - name: Clone submodules + run: git submodule update --init --recursive - name: Use JDK 17 uses: actions/setup-java@v4 with: @@ -168,6 +192,12 @@ jobs: # Ensure we are building the branch and not the branch after being merged on develop # https://github.com/actions/checkout/issues/881 ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} + - name: Add SSH private keys for submodule repositories + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} + - name: Clone submodules + run: git submodule update --init --recursive - name: Use JDK 17 uses: actions/setup-java@v4 with: @@ -200,6 +230,12 @@ jobs: # Ensure we are building the branch and not the branch after being merged on develop # https://github.com/actions/checkout/issues/881 ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} + - name: Add SSH private keys for submodule repositories + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} + - name: Clone submodules + run: git submodule update --init --recursive - name: Use JDK 17 uses: actions/setup-java@v4 with: