-
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.
fix(package): up deps, fix vuls, update ci flow (#30)
- Loading branch information
1 parent
d1ccfec
commit 7f6c933
Showing
20 changed files
with
3,618 additions
and
925 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
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 |
---|---|---|
|
@@ -22,6 +22,7 @@ build | |
dist | ||
lib | ||
target | ||
buildstamp.json | ||
|
||
#Docs | ||
docs | ||
|
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 |
---|---|---|
@@ -1,26 +1,86 @@ | ||
language: node_js | ||
node_js: | ||
- '12' | ||
cache: yarn | ||
node_js: 14 | ||
install: skip | ||
os: linux | ||
dist: focal | ||
|
||
before_script: | ||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
- chmod +x ./cc-test-reporter | ||
- ./cc-test-reporter before-build | ||
jobs: | ||
fast_finish: true | ||
include: | ||
- stage: verify | ||
if: branch != master AND type != pull_request | ||
install: yarn | ||
script: | ||
- yarn build | ||
- if [ "$CI_TEST" != "false" ]; then | ||
yarn test; | ||
fi | ||
- &build | ||
stage: build | ||
if: branch = master | ||
install: yarn | ||
script: yarn build | ||
# https://docs.travis-ci.com/user/using-workspaces/ | ||
workspaces: | ||
create: | ||
name: linux-shared | ||
paths: | ||
- target | ||
- flow-typed | ||
- typings | ||
- docs | ||
- node_modules | ||
- <<: *build | ||
os: windows | ||
if: branch = master AND env(CI_WIN_BUILD) = true AND type = pull_request | ||
# https://travis-ci.community/t/timeout-after-build-finished-and-succeeded/1336/2 | ||
env: YARN_GPG=no | ||
workspaces: | ||
create: | ||
name: win-shared | ||
paths: | ||
- target | ||
- node_modules | ||
|
||
after_script: | ||
- ./cc-test-reporter format-coverage -t lcov ./coverage/lcov.info | ||
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT | ||
- &test | ||
if: branch = master AND type = pull_request AND env(CI_TEST) != false | ||
stage: test | ||
install: skip | ||
script: yarn test | ||
workspaces: | ||
use: linux-shared | ||
- <<: *test | ||
node_js: 12 | ||
- <<: *test | ||
if: branch = master AND type != pull_request AND env(CI_TEST) != false | ||
before_script: | ||
- if [ "$CC_TEST_REPORTER_ID" != "" ]; then | ||
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; | ||
chmod +x ./cc-test-reporter; | ||
./cc-test-reporter before-build; | ||
fi | ||
script: | ||
- if [ "$CC_TEST_REPORTER_ID" != "" ]; then | ||
yarn test:report; | ||
else | ||
yarn test; | ||
fi | ||
after_script: | ||
- if [ "$CC_TEST_REPORTER_ID" != "" ]; then | ||
./cc-test-reporter format-coverage -t lcov ./coverage/lcov.info; | ||
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; | ||
fi | ||
- <<: *test | ||
if: branch = master AND type = pull_request AND env(CI_WIN_BUILD) = true AND env(CI_TEST) != false | ||
os: windows | ||
env: YARN_GPG=no | ||
workspaces: | ||
use: win-shared | ||
|
||
install: | ||
- yarn cache clean | ||
- yarn | ||
|
||
script: | ||
- yarn run build | ||
- yarn test:report | ||
|
||
deploy: | ||
provider: script | ||
skip_cleanup: true | ||
script: | ||
- npx -p @qiwi/semrel-toolkit semrel | ||
- stage: release | ||
if: branch = master AND type != pull_request AND env(CI_RELEASE) = true | ||
workspaces: | ||
use: linux-shared | ||
install: skip | ||
script: npx -p @qiwi/semrel-toolkit semrel -e @qiwi/semrel-config |
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.