Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions src/jobs/std/std_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ executor: << parameters.executor >>
working_directory: /home/circleci/code
steps:
- std_checkout
- std_restore_cache:
cache_name: node
use_lockfile: true
- std_restore_cache:
cache_name: build
- attach_workspace:
at: .
- run:
name: Build
command: |
Expand All @@ -23,6 +20,7 @@ steps:
- store_artifacts:
path: /tmp/openapi-schemas
destination: /
- std_save_cache:
cache_name: build
path: /home/circleci/code/.turbo/cache
- persist_to_workspace:
root: .
paths:
- .turbo/cache
7 changes: 2 additions & 5 deletions src/jobs/std/std_docker_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ environment:
steps:
- setup_remote_docker
- std_checkout
- std_restore_cache:
cache_name: node
use_lockfile: true
- std_restore_cache:
cache_name: build
- attach_workspace:
at: .
- run:
name: Docker Publish
command: |
Expand Down
5 changes: 5 additions & 0 deletions src/jobs/std/std_install_node_and_yarn_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@ steps:
cache_name: node
path: /home/circleci/code/node_modules
use_lockfile: true
- persist_to_workspace:
root: .
paths:
- .yarn/cache
- node_modules
11 changes: 2 additions & 9 deletions src/jobs/std/std_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ executor: << parameters.executor >>
working_directory: /home/circleci/code
steps:
- std_checkout
- std_restore_cache:
cache_name: node
use_lockfile: true
- std_restore_cache:
cache_name: lint
- attach_workspace:
at: .
- run:
name: Run Linting
command: |
Expand All @@ -19,7 +16,3 @@ steps:
destination: lint.report.xml
- store_test_results:
path: reports/lint.report.xml
- std_save_cache:
cache_name: lint
path: /home/circleci/code/.eslintcache
path_2: /home/circleci/code/node_modules/.cache/prettier
6 changes: 2 additions & 4 deletions src/jobs/std/std_sonarcloud_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ executor: << parameters.executor >>
working_directory: /home/circleci/code
steps:
- std_checkout
- std_restore_cache:
cache_name: node
use_lockfile: true
# is this needed here?
- attach_workspace:
at: /home/circleci/code
at: .
- sonarcloud/scan:
cache_version: 1
9 changes: 4 additions & 5 deletions src/jobs/std/std_test_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ executor: << parameters.executor >>
working_directory: /home/circleci/code
steps:
- std_checkout
- std_restore_cache:
cache_name: node
use_lockfile: true
- std_restore_cache:
cache_name: build
- attach_workspace:
at: .
# TODO: should check if this gets layered with above or obliterates
# may just want to utilize remote turbocaching
- std_restore_cache:
cache_name: test-dependencies
- run:
Expand Down
10 changes: 4 additions & 6 deletions src/jobs/std/std_test_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ working_directory: /home/circleci/code
steps:
- setup_remote_docker
- std_checkout
- std_restore_cache:
cache_name: node
use_lockfile: true
- std_restore_cache:
cache_name: build
- attach_workspace:
at: .
- std_restore_cache:
cache_name: vitest-integration
- run:
Expand All @@ -23,8 +20,9 @@ steps:
path: sonar
- store_test_results:
path: integration.report.xml
# i don't see any jobs that require this one, do we need to persist? Does another job use these artifacts in the same workflow?
- persist_to_workspace:
root: /home/circleci/code
root: .
paths:
- sonar/integration-coverage
- std_save_cache:
Expand Down
7 changes: 2 additions & 5 deletions src/jobs/std/std_test_openapi_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ working_directory: /home/circleci/code
steps:
- setup_remote_docker
- std_checkout
- attach_workspace:
at: .
- std_clone_repo:
repo_name: openapi-schemas
directory: schemas
branch: master
- std_restore_cache:
cache_name: node
use_lockfile: true
- std_restore_cache:
cache_name: build
- run:
name: Restore OpenAPI Schemas
working_directory: /home/circleci/schemas
Expand Down
7 changes: 2 additions & 5 deletions src/jobs/std/std_test_types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ executor: << parameters.executor >>
working_directory: /home/circleci/code
steps:
- std_checkout
- std_restore_cache:
cache_name: node
use_lockfile: true
- std_restore_cache:
cache_name: build
- attach_workspace:
at: .
- std_restore_cache:
cache_name: test-types
- run:
Expand Down
9 changes: 3 additions & 6 deletions src/jobs/std/std_test_unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ executor: << parameters.executor >>
working_directory: /home/circleci/code
steps:
- std_checkout
- std_restore_cache:
cache_name: node
use_lockfile: true
- std_restore_cache:
cache_name: build
- attach_workspace:
at: .
- std_restore_cache:
cache_name: vitest-unit
- run:
Expand All @@ -23,7 +20,7 @@ steps:
- store_test_results:
path: unit.report.xml
- persist_to_workspace:
root: /home/circleci/code
root: .
paths:
- sonar/unit-coverage
- std_save_cache:
Expand Down