Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code quality workflow #281

Merged
merged 1 commit into from
May 22, 2024
Merged

Add code quality workflow #281

merged 1 commit into from
May 22, 2024

Conversation

pratishta
Copy link
Contributor

@pratishta pratishta commented May 20, 2024

Closes #275

Using act to test the workflow.

Successful run
INFO[0000] Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock'
[🚧 Lint and run test suite/🔎 Lint      ] 🚀  Start image=catthehacker/ubuntu:act-latest
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform=linux/amd64 username= forcePull=true
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker create image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker run image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[🚧 Lint and run test suite/🔎 Lint      ]   ☁  git clone 'https://github.com/actions/setup-node' # ref=v4
[🚧 Lint and run test suite/🔎 Lint      ] ⭐ Run Main actions/checkout@v4
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker cp src=/Users/pratishtayerakala/dcp_ae/ae-zoning-api/. dst=/Users/pratishtayerakala/dcp_ae/ae-zoning-api
[🚧 Lint and run test suite/🔎 Lint      ]   ✅  Success - Main actions/checkout@v4
[🚧 Lint and run test suite/🔎 Lint      ] ⭐ Run Main set up node env
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker cp src=/Users/pratishtayerakala/.cache/act/actions-setup-node@v4/ dst=/var/run/act/actions/actions-setup-node@v4/
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v4/dist/setup/index.js] user= workdir=
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::isExplicit:
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::explicit? false
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::isExplicit: 18.20.2
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::explicit? true
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::evaluating 1 versions
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::matched: 18.20.2
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::checking cache: /opt/hostedtoolcache/node/18.20.2/x64
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::Found tool in cache node 18.20.2 x64
| Found in cache @ /opt/hostedtoolcache/node/18.20.2/x64
[🚧 Lint and run test suite/🔎 Lint      ]   ❓  ::group::Environment details
| node: v18.20.2
| npm: 10.5.0
| yarn:
[🚧 Lint and run test suite/🔎 Lint      ]   ❓  ::endgroup::
[🚧 Lint and run test suite/🔎 Lint      ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/tsc.json
[🚧 Lint and run test suite/🔎 Lint      ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/eslint-stylish.json
[🚧 Lint and run test suite/🔎 Lint      ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/eslint-compact.json
[🚧 Lint and run test suite/🔎 Lint      ]   ✅  Success - Main set up node env
[🚧 Lint and run test suite/🔎 Lint      ]   ⚙  ::set-output:: node-version=v18.20.2
[🚧 Lint and run test suite/🔎 Lint      ]   ⚙  ::add-path:: /opt/hostedtoolcache/node/18.20.2/x64/bin
[🚧 Lint and run test suite/🔎 Lint      ] ⭐ Run Main Install dependencies
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/2] user= workdir=
| npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
| npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
|
| > [email protected] prepare
| > husky install
|
| husky - Git hooks installed
|
| added 1180 packages, and audited 1181 packages in 25s
|
| 197 packages are looking for funding
|   run `npm fund` for details
|
| 1 low severity vulnerability
|
| To address all issues, run:
|   npm audit fix
|
| Run `npm audit` for details.
[🚧 Lint and run test suite/🔎 Lint      ]   ✅  Success - Main Install dependencies
[🚧 Lint and run test suite/🔎 Lint      ] ⭐ Run Main Run lint
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/3] user= workdir=
|
| > [email protected] lint
| > eslint "{src,apps,libs,test}/**/*.ts" --fix
|
[🚧 Lint and run test suite/🔎 Lint      ]   ✅  Success - Main Run lint
[🚧 Lint and run test suite/🔎 Lint      ] ⭐ Run Post set up node env
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v4/dist/cache-save/index.js] user= workdir=
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::Caching for '' is not supported
[🚧 Lint and run test suite/🔎 Lint      ]   ✅  Success - Post set up node env
[🚧 Lint and run test suite/🔎 Lint      ] Cleaning up container for job 🔎 Lint
[🚧 Lint and run test suite/🔎 Lint      ] 🏁  Job succeeded
[🚧 Lint and run test suite/🧪 Unit tests            ] 🚀  Start image=catthehacker/ubuntu:act-latest
[🚧 Lint and run test suite/🎢 End to end tests      ] 🚀  Start image=catthehacker/ubuntu:act-latest
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform=linux/amd64 username= forcePull=true
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform=linux/amd64 username= forcePull=true
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker create image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker run image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker create image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[🚧 Lint and run test suite/🧪 Unit tests            ]   ☁  git clone 'https://github.com/actions/setup-node' # ref=v4
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker run image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[🚧 Lint and run test suite/🎢 End to end tests      ]   ☁  git clone 'https://github.com/actions/setup-node' # ref=v4
[🚧 Lint and run test suite/🧪 Unit tests            ] ⭐ Run Main actions/checkout@v4
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker cp src=/Users/pratishtayerakala/dcp_ae/ae-zoning-api/. dst=/Users/pratishtayerakala/dcp_ae/ae-zoning-api
[🚧 Lint and run test suite/🎢 End to end tests      ] ⭐ Run Main actions/checkout@v4
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker cp src=/Users/pratishtayerakala/dcp_ae/ae-zoning-api/. dst=/Users/pratishtayerakala/dcp_ae/ae-zoning-api
[🚧 Lint and run test suite/🧪 Unit tests            ]   ✅  Success - Main actions/checkout@v4
[🚧 Lint and run test suite/🧪 Unit tests            ] ⭐ Run Main Set up node env
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker cp src=/Users/pratishtayerakala/.cache/act/actions-setup-node@v4/ dst=/var/run/act/actions/actions-setup-node@v4/
[🚧 Lint and run test suite/🎢 End to end tests      ]   ✅  Success - Main actions/checkout@v4
[🚧 Lint and run test suite/🎢 End to end tests      ] ⭐ Run Main Set up node env
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker cp src=/Users/pratishtayerakala/.cache/act/actions-setup-node@v4/ dst=/var/run/act/actions/actions-setup-node@v4/
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v4/dist/setup/index.js] user= workdir=
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v4/dist/setup/index.js] user= workdir=
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::isExplicit:
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::explicit? false
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::isExplicit: 18.20.2
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::explicit? true
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::evaluating 1 versions
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::matched: 18.20.2
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::checking cache: /opt/hostedtoolcache/node/18.20.2/x64
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::Found tool in cache node 18.20.2 x64
| Found in cache @ /opt/hostedtoolcache/node/18.20.2/x64
[🚧 Lint and run test suite/🧪 Unit tests            ]   ❓  ::group::Environment details
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::isExplicit:
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::explicit? false
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::isExplicit: 18.20.2
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::explicit? true
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::evaluating 1 versions
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::matched: 18.20.2
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::checking cache: /opt/hostedtoolcache/node/18.20.2/x64
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::Found tool in cache node 18.20.2 x64
| Found in cache @ /opt/hostedtoolcache/node/18.20.2/x64
[🚧 Lint and run test suite/🎢 End to end tests      ]   ❓  ::group::Environment details
| node: v18.20.2
| npm: 10.5.0
| yarn:
[🚧 Lint and run test suite/🧪 Unit tests            ]   ❓  ::endgroup::
[🚧 Lint and run test suite/🧪 Unit tests            ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/tsc.json
[🚧 Lint and run test suite/🧪 Unit tests            ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/eslint-stylish.json
[🚧 Lint and run test suite/🧪 Unit tests            ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/eslint-compact.json
[🚧 Lint and run test suite/🧪 Unit tests            ]   ✅  Success - Main Set up node env
[🚧 Lint and run test suite/🧪 Unit tests            ]   ⚙  ::set-output:: node-version=v18.20.2
[🚧 Lint and run test suite/🧪 Unit tests            ]   ⚙  ::add-path:: /opt/hostedtoolcache/node/18.20.2/x64/bin
[🚧 Lint and run test suite/🧪 Unit tests            ] ⭐ Run Main Install dependencies
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/2] user= workdir=
| node: v18.20.2
| npm: 10.5.0
| yarn:
[🚧 Lint and run test suite/🎢 End to end tests      ]   ❓  ::endgroup::
[🚧 Lint and run test suite/🎢 End to end tests      ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/tsc.json
[🚧 Lint and run test suite/🎢 End to end tests      ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/eslint-stylish.json
[🚧 Lint and run test suite/🎢 End to end tests      ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/eslint-compact.json
[🚧 Lint and run test suite/🎢 End to end tests      ]   ✅  Success - Main Set up node env
[🚧 Lint and run test suite/🎢 End to end tests      ]   ⚙  ::set-output:: node-version=v18.20.2
[🚧 Lint and run test suite/🎢 End to end tests      ]   ⚙  ::add-path:: /opt/hostedtoolcache/node/18.20.2/x64/bin
[🚧 Lint and run test suite/🎢 End to end tests      ] ⭐ Run Main Install dependencies
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/2] user= workdir=
| npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
| npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
| npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
| npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
|
| > [email protected] prepare
| > husky install
|
|
| > [email protected] prepare
| > husky install
|
| husky - Git hooks installed
|
| added 1180 packages, and audited 1181 packages in 30s
|
| 197 packages are looking for funding
|   run `npm fund` for details
|
| 1 low severity vulnerability
|
| To address all issues, run:
|   npm audit fix
|
| Run `npm audit` for details.
[🚧 Lint and run test suite/🧪 Unit tests            ]   ✅  Success - Main Install dependencies
[🚧 Lint and run test suite/🧪 Unit tests            ] ⭐ Run Main Run unit tests
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/3] user= workdir=
| husky - Git hooks installed
|
| added 1180 packages, and audited 1181 packages in 30s
|
| 197 packages are looking for funding
|   run `npm fund` for details
|
| 1 low severity vulnerability
|
| To address all issues, run:
|   npm audit fix
|
| Run `npm audit` for details.
[🚧 Lint and run test suite/🎢 End to end tests      ]   ✅  Success - Main Install dependencies
[🚧 Lint and run test suite/🎢 End to end tests      ] ⭐ Run Main Run end to end tests
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/3] user= workdir=
|
| > [email protected] test
| > jest
|
|
| > [email protected] test:e2e
| > jest --config ./test/jest-e2e.json
|
|  PASS  src/tax-lot/tax-lot.service.spec.ts (9.517 s)
|  PASS  test/tax-lot/tax-lot.e2e-spec.ts (10.419 s)
|  PASS  src/zoning-district-class/zoning-district-class.service.spec.ts
|  PASS  src/zoning-district/zoning-district.service.spec.ts
|  PASS  test/zoning-district-class/zoning-district-class.e2e-spec.ts
|  PASS  src/pipes/decode-params-pipe.spec.ts
|  PASS  src/borough/borough.service.spec.ts
|  PASS  test/zoning-district/zoning-district.e2e-spec.ts
|  PASS  src/land-use/land-use.service.spec.ts
|  PASS  src/app.controller.spec.ts

| Test Suites: 7 passed, 7 total
| Tests:       40 passed, 40 total
| Snapshots:   0 total
| Time:        13.667 s
| Ran all test suites.
|  PASS  test/land-use/land-use.e2e-spec.ts
[🚧 Lint and run test suite/🧪 Unit tests            ]   ✅  Success - Main Run unit tests
[🚧 Lint and run test suite/🧪 Unit tests            ] ⭐ Run Post Set up node env
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v4/dist/cache-save/index.js] user= workdir=
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::Caching for '' is not supported
[🚧 Lint and run test suite/🧪 Unit tests            ]   ✅  Success - Post Set up node env
[🚧 Lint and run test suite/🧪 Unit tests            ] Cleaning up container for job 🧪 Unit tests
|  PASS  test/borough/borough.e2e-spec.ts
|  PASS  test/app.e2e-spec.ts

| Test Suites: 6 passed, 6 total
| Tests:       56 passed, 56 total
| Snapshots:   0 total
| Time:        15.17 s
| Ran all test suites.
[🚧 Lint and run test suite/🧪 Unit tests            ] 🏁  Job succeeded
[🚧 Lint and run test suite/🎢 End to end tests      ]   ✅  Success - Main Run end to end tests
[🚧 Lint and run test suite/🎢 End to end tests      ] ⭐ Run Post Set up node env
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v4/dist/cache-save/index.js] user= workdir=
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::Caching for '' is not supported
[🚧 Lint and run test suite/🎢 End to end tests      ]   ✅  Success - Post Set up node env
[🚧 Lint and run test suite/🎢 End to end tests      ] Cleaning up container for job 🎢 End to end tests
[🚧 Lint and run test suite/🎢 End to end tests      ] 🏁  Job succeeded
Failed run
INFO[0000] Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock'
[🚧 Lint and run test suite/🔎 Lint      ] 🚀  Start image=catthehacker/ubuntu:act-latest
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform=linux/amd64 username= forcePull=true
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker create image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker run image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[🚧 Lint and run test suite/🔎 Lint      ]   ☁  git clone 'https://github.com/actions/setup-node' # ref=v4
[🚧 Lint and run test suite/🔎 Lint      ] ⭐ Run Main actions/checkout@v4
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker cp src=/Users/pratishtayerakala/dcp_ae/ae-zoning-api/. dst=/Users/pratishtayerakala/dcp_ae/ae-zoning-api
[🚧 Lint and run test suite/🔎 Lint      ]   ✅  Success - Main actions/checkout@v4
[🚧 Lint and run test suite/🔎 Lint      ] ⭐ Run Main set up node env
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker cp src=/Users/pratishtayerakala/.cache/act/actions-setup-node@v4/ dst=/var/run/act/actions/actions-setup-node@v4/
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v4/dist/setup/index.js] user= workdir=
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::isExplicit:
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::explicit? false
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::isExplicit: 18.20.2
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::explicit? true
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::evaluating 1 versions
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::matched: 18.20.2
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::checking cache: /opt/hostedtoolcache/node/18.20.2/x64
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::Found tool in cache node 18.20.2 x64
| Found in cache @ /opt/hostedtoolcache/node/18.20.2/x64
[🚧 Lint and run test suite/🔎 Lint      ]   ❓  ::group::Environment details
| node: v18.20.2
| npm: 10.5.0
| yarn:
[🚧 Lint and run test suite/🔎 Lint      ]   ❓  ::endgroup::
[🚧 Lint and run test suite/🔎 Lint      ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/tsc.json
[🚧 Lint and run test suite/🔎 Lint      ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/eslint-stylish.json
[🚧 Lint and run test suite/🔎 Lint      ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/eslint-compact.json
[🚧 Lint and run test suite/🔎 Lint      ]   ✅  Success - Main set up node env
[🚧 Lint and run test suite/🔎 Lint      ]   ⚙  ::set-output:: node-version=v18.20.2
[🚧 Lint and run test suite/🔎 Lint      ]   ⚙  ::add-path:: /opt/hostedtoolcache/node/18.20.2/x64/bin
[🚧 Lint and run test suite/🔎 Lint      ] ⭐ Run Main Install dependencies
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/2] user= workdir=
| npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
| npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
|
| > [email protected] prepare
| > husky install
|
| husky - Git hooks installed
|
| added 1180 packages, and audited 1181 packages in 28s
|
| 197 packages are looking for funding
|   run `npm fund` for details
|
| 1 low severity vulnerability
|
| To address all issues, run:
|   npm audit fix
|
| Run `npm audit` for details.
[🚧 Lint and run test suite/🔎 Lint      ]   ✅  Success - Main Install dependencies
[🚧 Lint and run test suite/🔎 Lint      ] ⭐ Run Main Run lint
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/3] user= workdir=
|
| > [email protected] lint
| > eslint "{src,apps,libs,test}/**/*.ts" --fix
|
[🚧 Lint and run test suite/🔎 Lint      ]   ✅  Success - Main Run lint
[🚧 Lint and run test suite/🔎 Lint      ] ⭐ Run Post set up node env
[🚧 Lint and run test suite/🔎 Lint      ]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v4/dist/cache-save/index.js] user= workdir=
[🚧 Lint and run test suite/🔎 Lint      ]   💬  ::debug::Caching for '' is not supported
[🚧 Lint and run test suite/🔎 Lint      ]   ✅  Success - Post set up node env
[🚧 Lint and run test suite/🔎 Lint      ] Cleaning up container for job 🔎 Lint
[🚧 Lint and run test suite/🔎 Lint      ] 🏁  Job succeeded
[🚧 Lint and run test suite/🧪 Unit tests            ] 🚀  Start image=catthehacker/ubuntu:act-latest
[🚧 Lint and run test suite/🎢 End to end tests      ] 🚀  Start image=catthehacker/ubuntu:act-latest
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform=linux/amd64 username= forcePull=true
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform=linux/amd64 username= forcePull=true
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker create image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker create image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker run image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker run image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[🚧 Lint and run test suite/🎢 End to end tests      ]   ☁  git clone 'https://github.com/actions/setup-node' # ref=v4
[🚧 Lint and run test suite/🧪 Unit tests            ]   ☁  git clone 'https://github.com/actions/setup-node' # ref=v4
[🚧 Lint and run test suite/🎢 End to end tests      ] ⭐ Run Main actions/checkout@v4
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker cp src=/Users/pratishtayerakala/dcp_ae/ae-zoning-api/. dst=/Users/pratishtayerakala/dcp_ae/ae-zoning-api
[🚧 Lint and run test suite/🧪 Unit tests            ] ⭐ Run Main actions/checkout@v4
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker cp src=/Users/pratishtayerakala/dcp_ae/ae-zoning-api/. dst=/Users/pratishtayerakala/dcp_ae/ae-zoning-api
[🚧 Lint and run test suite/🎢 End to end tests      ]   ✅  Success - Main actions/checkout@v4
[🚧 Lint and run test suite/🎢 End to end tests      ] ⭐ Run Main Set up node env
[🚧 Lint and run test suite/🧪 Unit tests            ]   ✅  Success - Main actions/checkout@v4
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker cp src=/Users/pratishtayerakala/.cache/act/actions-setup-node@v4/ dst=/var/run/act/actions/actions-setup-node@v4/
[🚧 Lint and run test suite/🧪 Unit tests            ] ⭐ Run Main Set up node env
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker cp src=/Users/pratishtayerakala/.cache/act/actions-setup-node@v4/ dst=/var/run/act/actions/actions-setup-node@v4/
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v4/dist/setup/index.js] user= workdir=
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v4/dist/setup/index.js] user= workdir=
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::isExplicit:
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::explicit? false
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::isExplicit: 18.20.2
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::explicit? true
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::evaluating 1 versions
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::matched: 18.20.2
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::checking cache: /opt/hostedtoolcache/node/18.20.2/x64
[🚧 Lint and run test suite/🎢 End to end tests      ]   💬  ::debug::Found tool in cache node 18.20.2 x64
| Found in cache @ /opt/hostedtoolcache/node/18.20.2/x64
[🚧 Lint and run test suite/🎢 End to end tests      ]   ❓  ::group::Environment details
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::isExplicit:
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::explicit? false
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::isExplicit: 18.20.2
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::explicit? true
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::evaluating 1 versions
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::matched: 18.20.2
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::checking cache: /opt/hostedtoolcache/node/18.20.2/x64
[🚧 Lint and run test suite/🧪 Unit tests            ]   💬  ::debug::Found tool in cache node 18.20.2 x64
| Found in cache @ /opt/hostedtoolcache/node/18.20.2/x64
[🚧 Lint and run test suite/🧪 Unit tests            ]   ❓  ::group::Environment details
| node: v18.20.2
| npm: 10.5.0
| yarn:
[🚧 Lint and run test suite/🎢 End to end tests      ]   ❓  ::endgroup::
[🚧 Lint and run test suite/🎢 End to end tests      ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/tsc.json
[🚧 Lint and run test suite/🎢 End to end tests      ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/eslint-stylish.json
[🚧 Lint and run test suite/🎢 End to end tests      ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/eslint-compact.json
| node: v18.20.2
| npm: 10.5.0
| yarn:
[🚧 Lint and run test suite/🧪 Unit tests            ]   ❓  ::endgroup::
[🚧 Lint and run test suite/🧪 Unit tests            ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/tsc.json
[🚧 Lint and run test suite/🧪 Unit tests            ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/eslint-stylish.json
[🚧 Lint and run test suite/🧪 Unit tests            ]   ❓ add-matcher /run/act/actions/actions-setup-node@v4/.github/eslint-compact.json
[🚧 Lint and run test suite/🎢 End to end tests      ]   ✅  Success - Main Set up node env
[🚧 Lint and run test suite/🎢 End to end tests      ]   ⚙  ::set-output:: node-version=v18.20.2
[🚧 Lint and run test suite/🎢 End to end tests      ]   ⚙  ::add-path:: /opt/hostedtoolcache/node/18.20.2/x64/bin
[🚧 Lint and run test suite/🧪 Unit tests            ]   ✅  Success - Main Set up node env
[🚧 Lint and run test suite/🧪 Unit tests            ]   ⚙  ::set-output:: node-version=v18.20.2
[🚧 Lint and run test suite/🧪 Unit tests            ]   ⚙  ::add-path:: /opt/hostedtoolcache/node/18.20.2/x64/bin
[🚧 Lint and run test suite/🎢 End to end tests      ] ⭐ Run Main Install dependencies
[🚧 Lint and run test suite/🧪 Unit tests            ] ⭐ Run Main Install dependencies
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/2] user= workdir=
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/2] user= workdir=
| npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
| npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
| npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
| npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
|
| > [email protected] prepare
| > husky install
|
|
| > [email protected] prepare
| > husky install
|
| husky - Git hooks installed
|
| added 1180 packages, and audited 1181 packages in 32s
|
| 197 packages are looking for funding
|   run `npm fund` for details
|
| 1 low severity vulnerability
|
| To address all issues, run:
|   npm audit fix
|
| Run `npm audit` for details.
| husky - Git hooks installed
[🚧 Lint and run test suite/🧪 Unit tests            ]   ✅  Success - Main Install dependencies
|
| added 1180 packages, and audited 1181 packages in 32s
|
| 197 packages are looking for funding
|   run `npm fund` for details
|
| 1 low severity vulnerability
|
| To address all issues, run:
|   npm audit fix
|
| Run `npm audit` for details.
[🚧 Lint and run test suite/🎢 End to end tests      ]   ✅  Success - Main Install dependencies
[🚧 Lint and run test suite/🧪 Unit tests            ] ⭐ Run Main Run unit tests
[🚧 Lint and run test suite/🎢 End to end tests      ] ⭐ Run Main Run end to end tests
[🚧 Lint and run test suite/🧪 Unit tests            ]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/3] user= workdir=
[🚧 Lint and run test suite/🎢 End to end tests      ]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/3] user= workdir=
|
| > [email protected] test
| > jest
|
|
| > [email protected] test:e2e
| > jest --config ./test/jest-e2e.json
|
|  PASS  src/tax-lot/tax-lot.service.spec.ts (9.482 s)
|  PASS  test/tax-lot/tax-lot.e2e-spec.ts (10.451 s)
|  PASS  src/zoning-district-class/zoning-district-class.service.spec.ts
|  PASS  test/zoning-district-class/zoning-district-class.e2e-spec.ts
|  PASS  src/zoning-district/zoning-district.service.spec.ts
|  PASS  src/pipes/decode-params-pipe.spec.ts
|  FAIL  src/borough/borough.service.spec.ts
|   ● Test suite failed to run
|
|     src/borough/borough.repository.ts:14:42 - error TS2551: Property 'findMy' does not exist on type 'RelationalQueryBuilder<ExtractTablesWithRelations<typeof import("/Users/pratishtayerakala/dcp_ae/ae-zoning-api/src/schema/index")>, { tsName: "borough"; dbName: "borough"; columns: { ...; }; relations: never; primaryKey: AnyColumn[]; }>'. Did you mean 'findMany'?
|
|     14       return await this.db.query.borough.findMy();
|                                                 ~~~~~~
|
|       node_modules/drizzle-orm/pg-core/query-builders/query.d.ts:19:5
|         19     findMany<TConfig extends DBQueryConfig<'many', true, TSchema, TFields>>(config?: KnownKeysOnly<TConfig, DBQueryConfig<'many', true, TSchema, TFields>>): PgRelationalQuery<BuildQueryResult<TSchema, TFields, TConfig>[]>;
|                ~~~~~~~~
|         'findMany' is declared here.
|
|  PASS  test/zoning-district/zoning-district.e2e-spec.ts
|  PASS  src/land-use/land-use.service.spec.ts
|  PASS  test/land-use/land-use.e2e-spec.ts
|  PASS  src/app.controller.spec.ts

| Test Suites: 1 failed, 6 passed, 7 total
| Tests:       39 passed, 39 total
| Snapshots:   0 total
| Time:        14.171 s
| Ran all test suites.
|  FAIL  test/borough/borough.e2e-spec.ts
|   ● Test suite failed to run
|
|     src/borough/borough.repository.ts:14:42 - error TS2551: Property 'findMy' does not exist on type 'RelationalQueryBuilder<ExtractTablesWithRelations<typeof import("/Users/pratishtayerakala/dcp_ae/ae-zoning-api/src/schema/index")>, { tsName: "borough"; dbName: "borough"; columns: { ...; }; relations: never; primaryKey: AnyColumn[]; }>'. Did you mean 'findMany'?
|
|     14       return await this.db.query.borough.findMy();
|                                                 ~~~~~~
|
|       node_modules/drizzle-orm/pg-core/query-builders/query.d.ts:19:5
|         19     findMany<TConfig extends DBQueryConfig<'many', true, TSchema, TFields>>(config?: KnownKeysOnly<TConfig, DBQueryConfig<'many', true, TSchema, TFields>>): PgRelationalQuery<BuildQueryResult<TSchema, TFields, TConfig>[]>;
|                ~~~~~~~~
|         'findMany' is declared here.
|
[🚧 Lint and run test suite/🧪 Unit tests            ]   ❌  Failure - Main Run unit tests
[🚧 Lint and run test suite/🧪 Unit tests            ] exitcode '1': failure
[🚧 Lint and run test suite/🧪 Unit tests            ] 🏁  Job failed
|  FAIL  test/app.e2e-spec.ts
|   ● Test suite failed to run
|
|     src/borough/borough.repository.ts:14:42 - error TS2551: Property 'findMy' does not exist on type 'RelationalQueryBuilder<ExtractTablesWithRelations<typeof import("/Users/pratishtayerakala/dcp_ae/ae-zoning-api/src/schema/index")>, { tsName: "borough"; dbName: "borough"; columns: { ...; }; relations: never; primaryKey: AnyColumn[]; }>'. Did you mean 'findMany'?
|
|     14       return await this.db.query.borough.findMy();
|                                                 ~~~~~~
|
|       node_modules/drizzle-orm/pg-core/query-builders/query.d.ts:19:5
|         19     findMany<TConfig extends DBQueryConfig<'many', true, TSchema, TFields>>(config?: KnownKeysOnly<TConfig, DBQueryConfig<'many', true, TSchema, TFields>>): PgRelationalQuery<BuildQueryResult<TSchema, TFields, TConfig>[]>;
|                ~~~~~~~~
|         'findMany' is declared here.
|
Test Suites: 2 failed, 4 passed, 6 total
| Tests:       53 passed, 53 total
| Snapshots:   0 total
| Time:        14.753 s
| Ran all test suites.
[🚧 Lint and run test suite/🎢 End to end tests      ]   ❌  Failure - Main Run end to end tests
[🚧 Lint and run test suite/🎢 End to end tests      ] exitcode '1': failure
[🚧 Lint and run test suite/🎢 End to end tests      ] 🏁  Job failed
Error: Job '🧪 Unit tests' failed

I'll squash commit once approved before rebasing and merging.

@pratishta pratishta requested a review from TangoYankee May 20, 2024 19:03
@pratishta pratishta marked this pull request as ready for review May 20, 2024 19:03
@pratishta pratishta marked this pull request as draft May 21, 2024 14:05
@pratishta pratishta marked this pull request as ready for review May 21, 2024 16:43
TangoYankee
TangoYankee previously approved these changes May 22, 2024
Trigger manually for testing purposes

Capitalize names

Install dependencies with npm ci

Update trigger to push to main and PRs

Change workflow name to code quality
@pratishta pratishta merged commit acb2f64 into main May 22, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: Lint and run test suite
2 participants