Skip to content

Commit

Permalink
Improve CI build times by removing redundant commands (#856)
Browse files Browse the repository at this point in the history
* Remove build step from CI

* All in one build
  • Loading branch information
bess authored Jul 23, 2024
1 parent 508612e commit bad57af
Showing 1 changed file with 2 additions and 40 deletions.
42 changes: 2 additions & 40 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,7 @@ commands:

jobs:

build:
working_directory: ~/tiger_data
machine: # executor type
image: default
docker_layer_caching: true
environment:
POSTGRES_USER: tiger_data_user
POSTGRES_DB: test_db
POSTGRES_HOST_AUTH_METHOD: trust
steps:
- checkout
- install_dependencies
- persist_to_workspace:
root: &root '~/tiger_data'
paths: '*'

lint:
test:
working_directory: ~/tiger_data
machine:
image: default
Expand All @@ -68,29 +52,13 @@ jobs:
steps:
- checkout
- install_dependencies
- persist_to_workspace:
root: &root '~/tiger_data'
paths: '*'
- run:
name: Run rubocop
command: bundle exec rubocop
paths: '*'
- run:
name: Run eslint
command: yarn run eslint 'app/javascript/**'

test:
working_directory: ~/tiger_data
machine:
image: default
docker_layer_caching: true
environment:
POSTGRES_USER: tiger_data_user
POSTGRES_DB: test_db
POSTGRES_HOST_AUTH_METHOD: trust
steps:
- checkout
- install_dependencies
- persist_to_workspace:
root: &root '~/tiger_data'
paths: '*'
Expand All @@ -117,10 +85,4 @@ workflows:
version: 2
build_accept_deploy:
jobs:
- build
- lint:
requires:
- build
- test:
requires:
- build
- test

0 comments on commit bad57af

Please sign in to comment.