forked from akash-network/console
-
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.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
751 changed files
with
54,785 additions
and
57,663 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,27 @@ | ||
name: Stats Web CI | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Check for changes in stats-web folder | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
stats-web: | ||
- 'stats-web/**' | ||
- name: Build the Docker image | ||
if: steps.filter.outputs.stats-web == 'true' | ||
run: docker build ./stats-web/ |
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.
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 @@ When running the api locally the following environment variables can be set in a | |
|-|-|- | ||
Network|`mainnet` or `testnet`|Specify if the api should be in mainnet or testnet mode. Default: `mainnet`. | ||
RestApiNodeUrl|ex: `"https://api.akashnet.net"`|Rest api to use. Will default to `"https://rest.cosmos.directory/akash"` for mainnet and `"https://api.testnet-02.aksh.pw:443"` for testnet. | ||
ServerOrigin|ex: `http://localhost:3080`|Origin of the api server. Will be used to populate the swagger server list. | ||
HealthchecksEnabled|`true` or `false`|Specify if the [Scheduler](./src/index.ts#L42) should send health check pings. | ||
SentryDSN|ex: `"https://[email protected]/1234"`|[Sentry DSN](https://docs.sentry.io/product/sentry-basics/dsn-explainer/) used when [initializing](./src/index.ts#L29) Sentry | ||
AkashDatabaseCS|ex: `postgres://user:password@localhost:5432/cloudmos-akash`|Akash Database Connection String | ||
|
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,37 +1,38 @@ | ||
const MAP_ALIASES = { | ||
'^@src(.*)$': "<rootDir>/src$1", | ||
'^@shared/(.*)$': '<rootDir>/../shared/$1', | ||
"^@src(.*)$": "<rootDir>/src/$1", | ||
"^@test/(.*)$": "<rootDir>/test/$1", | ||
"^@shared/(.*)$": "<rootDir>/../shared/$1" | ||
}; | ||
const MAP_TO_SAME_SEQUELIZE_PACKAGE = { | ||
'^sequelize(.*)$': '<rootDir>/node_modules/sequelize$1', | ||
} | ||
"^sequelize(.*)$": "<rootDir>/node_modules/sequelize$1" | ||
}; | ||
|
||
const common = { | ||
transform: { | ||
'^.+\\.(t|j)s$': ['ts-jest', { tsconfig: './tsconfig.json' }], | ||
"^.+\\.(t|j)s$": ["ts-jest", { tsconfig: "./tsconfig.json" }] | ||
}, | ||
rootDir: '.', | ||
rootDir: ".", | ||
moduleNameMapper: { | ||
...MAP_ALIASES, | ||
...MAP_TO_SAME_SEQUELIZE_PACKAGE, | ||
...MAP_TO_SAME_SEQUELIZE_PACKAGE | ||
}, | ||
setupFiles: ['./test/setup.ts'], | ||
setupFiles: ["./test/setup.ts"] | ||
}; | ||
|
||
module.exports = { | ||
collectCoverageFrom: ['./src/**/*.{js,ts}'], | ||
collectCoverageFrom: ["./src/**/*.{js,ts}"], | ||
projects: [ | ||
{ | ||
displayName: 'unit', | ||
displayName: "unit", | ||
...common, | ||
testMatch: ['<rootDir>/src/**/*.spec.ts'], | ||
setupFilesAfterEnv: ['./test/setup-unit-tests.ts'], | ||
testMatch: ["<rootDir>/src/**/*.spec.ts"], | ||
setupFilesAfterEnv: ["./test/setup-unit-tests.ts"] | ||
}, | ||
{ | ||
displayName: 'functional', | ||
displayName: "functional", | ||
...common, | ||
testMatch: ['<rootDir>/test/functional/**/*.spec.ts'], | ||
setupFilesAfterEnv: ['./test/setup-functional-tests.ts'], | ||
}, | ||
], | ||
testMatch: ["<rootDir>/test/functional/**/*.spec.ts"], | ||
setupFilesAfterEnv: ["./test/setup-functional-tests.ts"] | ||
} | ||
] | ||
}; |
Oops, something went wrong.