Skip to content

Commit

Permalink
Add build scripts for proper CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Apr 4, 2023
1 parent 7a4d6df commit 15f13d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:

strategy:
fail-fast: false
max-parallel: 2
max-parallel: 4
matrix:
node-version: [14, 16]
node-version: [14, 16, 18]

steps:
- uses: actions/checkout@v2
Expand All @@ -26,14 +26,14 @@ jobs:
- name: Install Dependencies
run: yarn install

- name: Build
run: yarn build:prod
- name: Build Node
run: yarn build && yarn build:prod

- name: Run Node Tests
run: yarn test:node

- name: Run Browser Tests
run: yarn test:browser
run: yarn build:browser:prod && yarn test:browser

- name: Run Linter
run: yarn tslint
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
XDR_BASE_URL_CURR=https://github.com/stellar/stellar-core/raw/master/src/protocol-curr/xdr
XDR_BASE_URL_CURR=https://github.com/stellar/stellar-xdr/raw/curr
XDR_BASE_LOCAL_CURR=xdr/curr
XDR_FILES_CURR= \
Stellar-SCP.x \
Expand All @@ -9,7 +9,7 @@ XDR_FILES_CURR= \
Stellar-types.x
XDR_FILES_LOCAL_CURR=$(addprefix xdr/curr/,$(XDR_FILES_CURR))

XDR_BASE_URL_NEXT=https://github.com/stellar/stellar-xdr-next/raw/main
XDR_BASE_URL_NEXT=https://github.com/stellar/stellar-xdr/raw/next
XDR_BASE_LOCAL_NEXT=xdr/next
XDR_FILES_NEXT= \
Stellar-SCP.x \
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test:all": "yarn test && yarn test:browser && yarn tslint",
"docs": "jsdoc -c ./config/.jsdoc.json --verbose",
"tslint": "dtslint --localTs node_modules/typescript/lib types/",
"preversion": "yarn clean && yarn pretty && yarn build:all && yarn test:all",
"preversion": "yarn clean && yarn pretty && yarn build:all:prod && yarn test:all",
"pretty": "prettier --config ./config/prettier.config.js --ignore-path ./config/.prettierignore --write './**/*.js'",
"clean": "rm -rf lib/ dist/ coverage/ .nyc_output/"
},
Expand Down

0 comments on commit 15f13d3

Please sign in to comment.