1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-29 04:17:41 +02:00

Remove CLOC jobs (#7893)

This commit is contained in:
Oscar Hinton 2024-02-13 15:08:03 +01:00 committed by GitHub
parent a9297af2d3
commit c73b263ec8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 84 deletions

View File

@ -34,22 +34,6 @@ defaults:
shell: bash shell: bash
jobs: 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: setup:
name: Setup name: Setup
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -389,7 +373,6 @@ jobs:
if: always() if: always()
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: needs:
- cloc
- setup - setup
- locales-test - locales-test
- build - build
@ -399,16 +382,13 @@ jobs:
- name: Check if any job failed - name: Check if any job failed
if: ${{ (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/rc') }} if: ${{ (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/rc') }}
env: env:
CLOC_STATUS: ${{ needs.cloc.result }}
SETUP_STATUS: ${{ needs.setup.result }} SETUP_STATUS: ${{ needs.setup.result }}
LOCALES_TEST_STATUS: ${{ needs.locales-test.result }} LOCALES_TEST_STATUS: ${{ needs.locales-test.result }}
BUILD_STATUS: ${{ needs.build.result }} BUILD_STATUS: ${{ needs.build.result }}
SAFARI_BUILD_STATUS: ${{ needs.build-safari.result }} SAFARI_BUILD_STATUS: ${{ needs.build-safari.result }}
CROWDIN_PUSH_STATUS: ${{ needs.crowdin-push.result }} CROWDIN_PUSH_STATUS: ${{ needs.crowdin-push.result }}
run: | run: |
if [ "$CLOC_STATUS" = "failure" ]; then if [ "$SETUP_STATUS" = "failure" ]; then
exit 1
elif [ "$SETUP_STATUS" = "failure" ]; then
exit 1 exit 1
elif [ "$LOCALES_TEST_STATUS" = "failure" ]; then elif [ "$LOCALES_TEST_STATUS" = "failure" ]; then
exit 1 exit 1

View File

@ -33,22 +33,6 @@ defaults:
working-directory: apps/cli working-directory: apps/cli
jobs: 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: setup:
name: Setup name: Setup
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -371,7 +355,6 @@ jobs:
if: always() if: always()
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: needs:
- cloc
- setup - setup
- cli - cli
- cli-windows - cli-windows
@ -381,14 +364,11 @@ jobs:
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
if: ${{ (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/rc') }} if: ${{ (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/rc') }}
env: env:
CLOC_STATUS: ${{ needs.cloc.result }}
SETUP_STATUS: ${{ needs.setup.result }} SETUP_STATUS: ${{ needs.setup.result }}
CLI_STATUS: ${{ needs.cli.result }} CLI_STATUS: ${{ needs.cli.result }}
SNAP_STATUS: ${{ needs.snap.result }} SNAP_STATUS: ${{ needs.snap.result }}
run: | run: |
if [ "$CLOC_STATUS" = "failure" ]; then if [ "$SETUP_STATUS" = "failure" ]; then
exit 1
elif [ "$SETUP_STATUS" = "failure" ]; then
exit 1 exit 1
elif [ "$CLI_STATUS" = "failure" ]; then elif [ "$CLI_STATUS" = "failure" ]; then
exit 1 exit 1

View File

@ -33,21 +33,6 @@ defaults:
shell: bash shell: bash
jobs: 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: electron-verify:
name: Verify Electron Version name: Verify Electron Version
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -1184,7 +1169,6 @@ jobs:
if: always() if: always()
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: needs:
- cloc
- electron-verify - electron-verify
- browser-build - browser-build
- setup - setup
@ -1198,7 +1182,6 @@ jobs:
- name: Check if any job failed - name: Check if any job failed
if: ${{ (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/rc') }} if: ${{ (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/rc') }}
env: env:
CLOC_STATUS: ${{ needs.cloc.result }}
ELECTRON_VERIFY_STATUS: ${{ needs.electron-verify.result }} ELECTRON_VERIFY_STATUS: ${{ needs.electron-verify.result }}
BROWSER_BUILD_STATUS: ${{ needs.browser-build.result }} BROWSER_BUILD_STATUS: ${{ needs.browser-build.result }}
SETUP_STATUS: ${{ needs.setup.result }} SETUP_STATUS: ${{ needs.setup.result }}
@ -1209,9 +1192,7 @@ jobs:
MACOS_PKG_MAS_STATUS: ${{ needs.macos-package-mas.result }} MACOS_PKG_MAS_STATUS: ${{ needs.macos-package-mas.result }}
CROWDIN_PUSH_STATUS: ${{ needs.crowdin-push.result }} CROWDIN_PUSH_STATUS: ${{ needs.crowdin-push.result }}
run: | run: |
if [ "$CLOC_STATUS" = "failure" ]; then if [ "$ELECTRON_VERIFY_STATUS" = "failure" ]; then
exit 1
elif [ "$ELECTRON_VERIFY_STATUS" = "failure" ]; then
exit 1 exit 1
elif [ "$BROWSER_BUILD_STATUS" = "failure" ]; then elif [ "$BROWSER_BUILD_STATUS" = "failure" ]; then
exit 1 exit 1

View File

@ -37,23 +37,6 @@ env:
_AZ_REGISTRY: bitwardenprod.azurecr.io _AZ_REGISTRY: bitwardenprod.azurecr.io
jobs: 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: setup:
name: Setup name: Setup
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -333,7 +316,6 @@ jobs:
if: always() if: always()
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: needs:
- cloc
- setup - setup
- build-artifacts - build-artifacts
- build-containers - build-containers
@ -343,16 +325,13 @@ jobs:
- name: Check if any job failed - name: Check if any job failed
if: ${{ (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/rc') }} if: ${{ (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/rc') }}
env: env:
CLOC_STATUS: ${{ needs.cloc.result }}
SETUP_STATUS: ${{ needs.setup.result }} SETUP_STATUS: ${{ needs.setup.result }}
ARTIFACT_STATUS: ${{ needs.build-artifacts.result }} ARTIFACT_STATUS: ${{ needs.build-artifacts.result }}
BUILD_CONTAINERS_STATUS: ${{ needs.build-containers.result }} BUILD_CONTAINERS_STATUS: ${{ needs.build-containers.result }}
CROWDIN_PUSH_STATUS: ${{ needs.crowdin-push.result }} CROWDIN_PUSH_STATUS: ${{ needs.crowdin-push.result }}
TRIGGER_WEB_VAULT_DEPLOY_STATUS: ${{ needs.trigger-web-vault-deploy.result }} TRIGGER_WEB_VAULT_DEPLOY_STATUS: ${{ needs.trigger-web-vault-deploy.result }}
run: | run: |
if [ "$CLOC_STATUS" = "failure" ]; then if [ "$SETUP_STATUS" = "failure" ]; then
exit 1
elif [ "$SETUP_STATUS" = "failure" ]; then
exit 1 exit 1
elif [ "$ARTIFACT_STATUS" = "failure" ]; then elif [ "$ARTIFACT_STATUS" = "failure" ]; then
exit 1 exit 1