mirror of
https://github.com/bitwarden/server.git
synced 2024-11-28 13:15:12 +01:00
Remove CLOC job (#3796)
This commit is contained in:
parent
1a3146f776
commit
ae5d6071ca
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
@ -14,21 +14,6 @@ env:
|
|||||||
_AZ_REGISTRY: "bitwardenprod.azurecr.io"
|
_AZ_REGISTRY: "bitwardenprod.azurecr.io"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cloc:
|
|
||||||
name: Count lines of code
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: Check out repo
|
|
||||||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
|
||||||
|
|
||||||
- name: Install cloc
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get -y install cloc
|
|
||||||
|
|
||||||
- name: Print lines of code
|
|
||||||
run: cloc --include-lang C#,SQL,Razor,"Bourne Shell",PowerShell,HTML,CSS,Sass,JavaScript,TypeScript --vcs git
|
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
@ -529,7 +514,6 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
needs:
|
needs:
|
||||||
- cloc
|
|
||||||
- lint
|
- lint
|
||||||
- build-artifacts
|
- build-artifacts
|
||||||
- build-docker
|
- build-docker
|
||||||
@ -544,7 +528,6 @@ jobs:
|
|||||||
|| github.ref == 'refs/heads/rc'
|
|| github.ref == 'refs/heads/rc'
|
||||||
|| github.ref == 'refs/heads/hotfix-rc'
|
|| github.ref == 'refs/heads/hotfix-rc'
|
||||||
env:
|
env:
|
||||||
CLOC_STATUS: ${{ needs.cloc.result }}
|
|
||||||
LINT_STATUS: ${{ needs.lint.result }}
|
LINT_STATUS: ${{ needs.lint.result }}
|
||||||
TESTING_STATUS: ${{ needs.testing.result }}
|
TESTING_STATUS: ${{ needs.testing.result }}
|
||||||
BUILD_ARTIFACTS_STATUS: ${{ needs.build-artifacts.result }}
|
BUILD_ARTIFACTS_STATUS: ${{ needs.build-artifacts.result }}
|
||||||
@ -554,9 +537,7 @@ jobs:
|
|||||||
TRIGGER_SELF_HOST_BUILD_STATUS: ${{ needs.self-host-build.result }}
|
TRIGGER_SELF_HOST_BUILD_STATUS: ${{ needs.self-host-build.result }}
|
||||||
TRIGGER_K8S_DEPLOY_STATUS: ${{ needs.trigger-k8s-deploy.result }}
|
TRIGGER_K8S_DEPLOY_STATUS: ${{ needs.trigger-k8s-deploy.result }}
|
||||||
run: |
|
run: |
|
||||||
if [ "$CLOC_STATUS" = "failure" ]; then
|
if [ "$LINT_STATUS" = "failure" ]; then
|
||||||
exit 1
|
|
||||||
elif [ "$LINT_STATUS" = "failure" ]; then
|
|
||||||
exit 1
|
exit 1
|
||||||
elif [ "$TESTING_STATUS" = "failure" ]; then
|
elif [ "$TESTING_STATUS" = "failure" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user