-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #471 from fei-protocol/release/2.5.0
Release/2.5.0
- Loading branch information
Showing
369 changed files
with
57,876 additions
and
11,780 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 |
---|---|---|
@@ -1,85 +1,97 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
build: | ||
working_directory: ~/repo | ||
docker: | ||
- image: circleci/node:14 | ||
resource_class: xlarge | ||
steps: | ||
- checkout | ||
- run: | ||
name: 'Update NPM' | ||
command: sudo npm install -g [email protected] | ||
- run: | ||
name: 'Set caching variables' | ||
command: | | ||
LAST_SUCCESSFUL_BUILD_URL="https://circleci.com/api/v1.1/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/tree/master?filter=successful&limit=1" | ||
LAST_SUCCESSFUL_COMMIT=`curl -Ss -u "$CIRCLE_TOKEN:" $LAST_SUCCESSFUL_BUILD_URL | jq -r '.[0]["vcs_revision"]'` | ||
echo $LAST_SUCCESSFUL_COMMIT > /tmp/last-successful-commit | ||
echo $CIRCLE_SHA1 > /tmp/current-commit | ||
- restore_cache: | ||
keys: | ||
- build-cache-{{ .Branch }}-{{ checksum "/tmp/last-successful-commit" }} | ||
- run: | ||
name: Install dependencies | ||
command: npm install | ||
- run: | ||
name: Compile contracts | ||
command: npm run compile | ||
- save_cache: | ||
key: repo-{{ .Environment.CIRCLE_SHA1 }} | ||
paths: | ||
- ~/repo | ||
lint: | ||
working_directory: ~/repo | ||
docker: | ||
- image: circleci/node:14 | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- repo-{{ .Environment.CIRCLE_SHA1 }} | ||
- run: | ||
name: Run linter | ||
command: npm run lint | ||
test: | ||
working_directory: ~/repo | ||
docker: | ||
- image: circleci/node:14 | ||
resource_class: xlarge | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- repo-{{ .Environment.CIRCLE_SHA1 }} | ||
- run: | ||
name: Run tests | ||
command: npm run test | ||
|
||
e2e-test: | ||
working_directory: ~/repo | ||
docker: | ||
- image: circleci/node:14 | ||
resource_class: xlarge | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- repo-{{ .Environment.CIRCLE_SHA1 }} | ||
- run: | ||
name: Run end-to-end tests | ||
command: npm run test:e2e | ||
|
||
workflows: | ||
main: | ||
jobs: | ||
- build | ||
- lint: | ||
requires: | ||
- build | ||
- test: | ||
requires: | ||
- build | ||
- e2e-test: | ||
requires: | ||
- build | ||
- lint | ||
- test | ||
version: 2.1 | ||
orbs: | ||
discord: antonioned/[email protected] | ||
jobs: | ||
build: | ||
working_directory: ~/repo | ||
docker: | ||
- image: circleci/node:14 | ||
resource_class: xlarge | ||
steps: | ||
- checkout | ||
- run: | ||
name: 'Update NPM' | ||
command: sudo npm install -g [email protected] | ||
- run: | ||
name: 'Set caching variables' | ||
command: | | ||
LAST_SUCCESSFUL_BUILD_URL="https://circleci.com/api/v1.1/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/tree/master?filter=successful&limit=1" | ||
LAST_SUCCESSFUL_COMMIT=`curl -Ss -u "$CIRCLE_TOKEN:" $LAST_SUCCESSFUL_BUILD_URL | jq -r '.[0]["vcs_revision"]'` | ||
echo $LAST_SUCCESSFUL_COMMIT > /tmp/last-successful-commit | ||
echo $CIRCLE_SHA1 > /tmp/current-commit | ||
- restore_cache: | ||
keys: | ||
- build-cache-{{ .Branch }}-{{ checksum "/tmp/last-successful-commit" }} | ||
- run: | ||
name: Install dependencies | ||
command: npm install | ||
- run: | ||
name: Compile contracts | ||
command: npm run compile | ||
- save_cache: | ||
key: repo-{{ .Environment.CIRCLE_SHA1 }} | ||
paths: | ||
- ~/repo | ||
lint: | ||
working_directory: ~/repo | ||
docker: | ||
- image: circleci/node:14 | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- repo-{{ .Environment.CIRCLE_SHA1 }} | ||
- run: | ||
name: Run linter | ||
command: npm run lint | ||
test: | ||
working_directory: ~/repo | ||
docker: | ||
- image: circleci/node:14 | ||
parallelism: 16 | ||
resource_class: large | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- repo-{{ .Environment.CIRCLE_SHA1 }} | ||
- run: | ||
name: Run tests | ||
command: | | ||
circleci tests glob "test/unit/**/*.ts" | circleci tests split --split-by=filesize > /tmp/tests-to-run | ||
npm run test $(cat /tmp/tests-to-run) | ||
- store_test_results: | ||
path: test-results | ||
- store_artifacts: | ||
path: test-results | ||
e2e-test: | ||
working_directory: ~/repo | ||
docker: | ||
- image: circleci/node:14 | ||
parallelism: 5 | ||
resource_class: xlarge | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- repo-{{ .Environment.CIRCLE_SHA1 }} | ||
- run: | ||
name: Run end-to-end tests | ||
command: | | ||
circleci tests glob "test/integration/**/*.ts" | circleci tests split --split-by=filesize > /tmp/tests-to-run | ||
npm run test:e2e $(cat /tmp/tests-to-run) | ||
- store_test_results: | ||
path: test-results | ||
- store_artifacts: | ||
path: test-results | ||
|
||
workflows: | ||
main: | ||
jobs: | ||
- build | ||
- lint: | ||
requires: | ||
- build | ||
- test: | ||
requires: | ||
- build | ||
- e2e-test: | ||
requires: | ||
- build |
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 |
---|---|---|
|
@@ -5,3 +5,6 @@ coverage/ | |
dist/ | ||
lib/ | ||
node_modules/ | ||
proposals/dao/old/ | ||
proposals/dao/fip_x.ts | ||
scripts/deploy/old/ |
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,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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
Oops, something went wrong.