-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4fa4ecc
commit bec3f08
Showing
6 changed files
with
34,432 additions
and
8,431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
coveralls: coveralls/coveralls@1.0.6 | ||
|
||
defaults: &defaults | ||
docker: | ||
- image: cimg/node:16.13.1-browsers | ||
working_directory: ~/qiaroq-vue | ||
|
||
jobs: | ||
install: | ||
<<: *defaults | ||
|
||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "package-lock.json" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
- run: | ||
name: Install | ||
command: npm install | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ checksum "package-lock.json" }} | ||
- persist_to_workspace: | ||
root: "." | ||
paths: | ||
- "package.json" | ||
- "package-lock.json" | ||
- "project.json" | ||
- "jest.*.js" | ||
- "webpack.*.js" | ||
- ".babelrc" | ||
- ".eslintrc" | ||
- ".firebaserc" | ||
- "firebase.json" | ||
- "node_modules" | ||
- ".git/*" | ||
- ".circleci/*" | ||
- "src/*" | ||
|
||
format: | ||
<<: *defaults | ||
|
||
steps: | ||
- attach_workspace: | ||
at: ~/qiaroq-vue | ||
- run: | ||
name: Format | ||
command: npm run format | ||
|
||
build: | ||
<<: *defaults | ||
|
||
steps: | ||
- attach_workspace: | ||
at: ~/qiaroq-vue | ||
- run: | ||
name: Build | ||
command: NODE_ENV=production npm run build | ||
- persist_to_workspace: | ||
root: "." | ||
paths: | ||
- "dist/*" | ||
|
||
test: | ||
<<: *defaults | ||
|
||
steps: | ||
- attach_workspace: | ||
at: ~/qiaroq-vue | ||
- run: | ||
name: Test | ||
command: npm run test -- --maxWorkers=2 --coverage --coverageReporters=lcov | ||
- coveralls/upload: | ||
verbose: true | ||
|
||
deploy: | ||
<<: *defaults | ||
|
||
steps: | ||
- attach_workspace: | ||
at: ~/qiaroq-vue | ||
- run: | ||
name: Deploy | ||
command: ./.circleci/deploy.sh | ||
|
||
workflows: | ||
version: 2 | ||
|
||
branch-workflow: | ||
jobs: | ||
- install | ||
- format: | ||
requires: | ||
- install | ||
- build: | ||
requires: | ||
- install | ||
- test: | ||
requires: | ||
- install | ||
- deploy: | ||
requires: | ||
- format | ||
- build | ||
- test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') | ||
|
||
if [ "$branch" = "master" ]; then | ||
npm run deploy -- --token=$FIREBASE_TOKEN | ||
else | ||
echo "skipped" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"projects": { | ||
"default": "qiaroq-vue" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"hosting": { | ||
"public": "dist", | ||
"cleanUrls": true, | ||
"trailingSlash": false | ||
} | ||
} |
Oops, something went wrong.