Skip to content

Commit

Permalink
Merge pull request #7 from social-native/develop
Browse files Browse the repository at this point in the history
v1.0.0 release
  • Loading branch information
erhathaway authored Mar 19, 2019
2 parents faefda7 + 327641b commit 0334ad9
Show file tree
Hide file tree
Showing 41 changed files with 14,528 additions and 2 deletions.
Binary file added .DS_Store
Binary file not shown.
121 changes: 121 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
defaults: &defaults
working_directory: ~/snpkg-snapi-connections

save-cache: &save-cache
save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

restore-cache: &restore-cache
restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

version: 2
jobs:
test:
<<: *defaults
docker:
- image: circleci/node:8.11.4-jessie
steps:
- checkout
- *restore-cache
- run: npm install
- *save-cache
- run: NODE_ENV=test NODE_ENV=test npm run migrate:latest
- run: NODE_ENV=test npm run seed:run
- run: npm run test

build-verification:
<<: *defaults
docker:
- image: circleci/node:8.11.4-jessie
steps:
- checkout
- *restore-cache
- run: npm install
- run: npm run build

type-check:
<<: *defaults
docker:
- image: circleci/node:8.11.4-jessie
steps:
- checkout
- *restore-cache
- run: npm install
- *save-cache
- run: npm run type-check

lint-check:
<<: *defaults
docker:
- image: circleci/node:8.11.4-jessie
steps:
- checkout
- *restore-cache
- run: npm install
- *save-cache
- run: npm run lint

beauty-check:
<<: *defaults
docker:
- image: circleci/node:8.11.4-jessie
steps:
- checkout
- *restore-cache
- run: npm install
- *save-cache
- run: npm run prettier -- --check

dependency-check:
<<: *defaults
docker:
- image: circleci/node:8.11.4-jessie
steps:
- checkout
- *restore-cache
- run: npm install
- *save-cache
- run: npm run dep-check
- store_artifacts:
path: /tmp/dependency-check-output.json

workflows:
version: 2
test-build-deploy:
jobs:
- test:
filters:
tags: # run for every branch
only: /^[0-9]+(\.[0-9]+)*$/

- build-verification:
filters:
tags: # run for every branch
only: /^[0-9]+(\.[0-9]+)*$/

- type-check:
filters:
tags: # run for every branch
only: /^[0-9]+(\.[0-9]+)*$/

- lint-check:
filters:
tags: # run for every branch
only: /^[0-9]+(\.[0-9]+)*$/

- beauty-check:
filters:
tags: # run for every branch
only: /^[0-9]+(\.[0-9]+)*$/

- dependency-check:
filters:
tags: # run for every branch
only: /^[0-9]+(\.[0-9]+)*$/

9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,12 @@ typings/

# next.js build output
.next

# rollup
.rpt2_cache

# sqllite
*.sqlite3

# dependency check
tmp
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"printWidth": 100
}
Loading

0 comments on commit 0334ad9

Please sign in to comment.