diff --git a/.github/workflows/build-browser.yml b/.github/workflows/build-browser.yml index c5407848d2..02c7f1b336 100644 --- a/.github/workflows/build-browser.yml +++ b/.github/workflows/build-browser.yml @@ -34,22 +34,6 @@ defaults: shell: bash jobs: - cloc: - name: CLOC - runs-on: ubuntu-22.04 - steps: - - name: Checkout repo - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - - name: Set up cloc - run: | - sudo apt update - sudo apt -y install cloc - - - name: Print lines of code - run: cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git - - setup: name: Setup runs-on: ubuntu-22.04 @@ -389,7 +373,6 @@ jobs: if: always() runs-on: ubuntu-22.04 needs: - - cloc - setup - locales-test - build @@ -399,16 +382,13 @@ jobs: - name: Check if any job failed if: ${{ (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/rc') }} env: - CLOC_STATUS: ${{ needs.cloc.result }} SETUP_STATUS: ${{ needs.setup.result }} LOCALES_TEST_STATUS: ${{ needs.locales-test.result }} BUILD_STATUS: ${{ needs.build.result }} SAFARI_BUILD_STATUS: ${{ needs.build-safari.result }} CROWDIN_PUSH_STATUS: ${{ needs.crowdin-push.result }} run: | - if [ "$CLOC_STATUS" = "failure" ]; then - exit 1 - elif [ "$SETUP_STATUS" = "failure" ]; then + if [ "$SETUP_STATUS" = "failure" ]; then exit 1 elif [ "$LOCALES_TEST_STATUS" = "failure" ]; then exit 1 diff --git a/.github/workflows/build-cli.yml b/.github/workflows/build-cli.yml index 7e5b2f9e0c..cd292048dd 100644 --- a/.github/workflows/build-cli.yml +++ b/.github/workflows/build-cli.yml @@ -33,22 +33,6 @@ defaults: working-directory: apps/cli jobs: - cloc: - name: CLOC - runs-on: ubuntu-22.04 - steps: - - name: Checkout repo - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - - name: Set up cloc - run: | - sudo apt update - sudo apt -y install cloc - - - name: Print lines of code - run: cloc --include-lang TypeScript,JavaScript --vcs git - - setup: name: Setup runs-on: ubuntu-22.04 @@ -371,7 +355,6 @@ jobs: if: always() runs-on: ubuntu-22.04 needs: - - cloc - setup - cli - cli-windows @@ -381,14 +364,11 @@ jobs: working-directory: ${{ github.workspace }} if: ${{ (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/rc') }} env: - CLOC_STATUS: ${{ needs.cloc.result }} SETUP_STATUS: ${{ needs.setup.result }} CLI_STATUS: ${{ needs.cli.result }} SNAP_STATUS: ${{ needs.snap.result }} run: | - if [ "$CLOC_STATUS" = "failure" ]; then - exit 1 - elif [ "$SETUP_STATUS" = "failure" ]; then + if [ "$SETUP_STATUS" = "failure" ]; then exit 1 elif [ "$CLI_STATUS" = "failure" ]; then exit 1 diff --git a/.github/workflows/build-desktop.yml b/.github/workflows/build-desktop.yml index 3e85c90582..03629aa5fd 100644 --- a/.github/workflows/build-desktop.yml +++ b/.github/workflows/build-desktop.yml @@ -33,21 +33,6 @@ defaults: shell: bash jobs: - cloc: - name: CLOC - runs-on: ubuntu-22.04 - steps: - - name: Checkout repo - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - - name: Set up cloc - run: | - sudo apt-get update - sudo apt-get -y install cloc - - - name: Print lines of code - run: cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git - electron-verify: name: Verify Electron Version runs-on: ubuntu-22.04 @@ -1184,7 +1169,6 @@ jobs: if: always() runs-on: ubuntu-22.04 needs: - - cloc - electron-verify - browser-build - setup @@ -1198,7 +1182,6 @@ jobs: - name: Check if any job failed if: ${{ (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/rc') }} env: - CLOC_STATUS: ${{ needs.cloc.result }} ELECTRON_VERIFY_STATUS: ${{ needs.electron-verify.result }} BROWSER_BUILD_STATUS: ${{ needs.browser-build.result }} SETUP_STATUS: ${{ needs.setup.result }} @@ -1209,9 +1192,7 @@ jobs: MACOS_PKG_MAS_STATUS: ${{ needs.macos-package-mas.result }} CROWDIN_PUSH_STATUS: ${{ needs.crowdin-push.result }} run: | - if [ "$CLOC_STATUS" = "failure" ]; then - exit 1 - elif [ "$ELECTRON_VERIFY_STATUS" = "failure" ]; then + if [ "$ELECTRON_VERIFY_STATUS" = "failure" ]; then exit 1 elif [ "$BROWSER_BUILD_STATUS" = "failure" ]; then exit 1 diff --git a/.github/workflows/build-web.yml b/.github/workflows/build-web.yml index ea9dfc0832..9ebd056c4c 100644 --- a/.github/workflows/build-web.yml +++ b/.github/workflows/build-web.yml @@ -37,23 +37,6 @@ env: _AZ_REGISTRY: bitwardenprod.azurecr.io jobs: - cloc: - name: CLOC - runs-on: ubuntu-22.04 - steps: - - name: Checkout repo - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - - name: Set up cloc - run: | - sudo apt update - sudo apt -y install cloc - - - name: Print lines of code - working-directory: apps/web - run: cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git - - setup: name: Setup runs-on: ubuntu-22.04 @@ -333,7 +316,6 @@ jobs: if: always() runs-on: ubuntu-22.04 needs: - - cloc - setup - build-artifacts - build-containers @@ -343,16 +325,13 @@ jobs: - name: Check if any job failed if: ${{ (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/rc') }} env: - CLOC_STATUS: ${{ needs.cloc.result }} SETUP_STATUS: ${{ needs.setup.result }} ARTIFACT_STATUS: ${{ needs.build-artifacts.result }} BUILD_CONTAINERS_STATUS: ${{ needs.build-containers.result }} CROWDIN_PUSH_STATUS: ${{ needs.crowdin-push.result }} TRIGGER_WEB_VAULT_DEPLOY_STATUS: ${{ needs.trigger-web-vault-deploy.result }} run: | - if [ "$CLOC_STATUS" = "failure" ]; then - exit 1 - elif [ "$SETUP_STATUS" = "failure" ]; then + if [ "$SETUP_STATUS" = "failure" ]; then exit 1 elif [ "$ARTIFACT_STATUS" = "failure" ]; then exit 1