-
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
27b9d90
commit 546f755
Showing
4 changed files
with
142 additions
and
27 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,42 @@ | ||
stages: | ||
- build | ||
- test | ||
|
||
build: | ||
stage: build | ||
image: node:20.18.1 | ||
before_script: | ||
- yarn install --frozen-lockfile | ||
script: | ||
- yarn build | ||
|
||
e2e_test: | ||
stage: test | ||
image: node:20.18.1 | ||
variables: | ||
POSTGRES_DB: db | ||
POSTGRES_USER: user | ||
POSTGRES_PASSWORD: pass | ||
PGPASSWORD: ${POSTGRES_PASSWORD} | ||
services: | ||
- name: postgres:17 | ||
alias: postgres | ||
before_script: | ||
- yarn install --frozen-lockfile | ||
- apt update && apt install -y postgresql-common | ||
- YES=1 /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh | ||
- apt -y install postgresql-client-17 | ||
- curl -o test/e2e_tests/db/db_btc_testnet https://githubstatic.flare.center/db_btc_testnet | ||
- curl -o test/e2e_tests/db/db_doge_testnet https://githubstatic.flare.center/db_doge_testnet | ||
- curl -o test/e2e_tests/db/db_xrp_testnet https://githubstatic.flare.center/db_xrp_testnet | ||
script: | ||
- yarn test ci | ||
|
||
lint: | ||
stage: test | ||
image: node:20.18.1 | ||
before_script: | ||
- yarn install --frozen-lockfile | ||
script: | ||
- yarn lint:check | ||
- yarn format:check |
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ services: | |
POSTGRES_USER: user | ||
POSTGRES_PASSWORD: pass | ||
ports: | ||
- "127.0.0.1:8080:5432" | ||
- "127.0.0.1:8081:5432" |
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