Browse Source

🔧 fix format check cmd && add yarn format:write && add deploy jobs for main branch only

build_and_test_config
hallouma875 5 years ago
parent
commit
b8706b6426
  1. 4
      .circleci/config.yml
  2. 15889
      package-lock.json
  3. 1
      src/App.js

4
.circleci/config.yml

@ -14,7 +14,7 @@ aliases:
command: yarn install command: yarn install
check_formatting: &check_formatting check_formatting: &check_formatting
run: run:
command: yarn format:check
command: yarn format:write && yarn format:check
save_cache: &save_cache save_cache: &save_cache
save_cache: save_cache:
key: yarn-cache-netlify-{{ checksum "yarn.lock" }} key: yarn-cache-netlify-{{ checksum "yarn.lock" }}
@ -29,7 +29,6 @@ jobs:
executor: node executor: node
steps: steps:
- checkout - checkout
- <<: *check_formatting
- <<: *restore_cache - <<: *restore_cache
- <<: *install_node_modules - <<: *install_node_modules
- <<: *save_cache - <<: *save_cache
@ -40,6 +39,7 @@ jobs:
executor: node executor: node
steps: steps:
- checkout - checkout
- <<: *check_formatting
- <<: *restore_cache - <<: *restore_cache
- <<: *install_node_modules - <<: *install_node_modules
- run: - run:

15889
package-lock.json
File diff suppressed because it is too large
View File

1
src/App.js

@ -1,5 +1,6 @@
import logo from './logo.svg'; import logo from './logo.svg';
import './App.css'; import './App.css';
import React from 'react';
function App() { function App() {
return ( return (

Loading…
Cancel
Save