mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-06-04 01:06:42 +00:00
Merge branch 'main-xahau' into workflow-publish
This commit is contained in:
8
.ci-config/validators.txt
Normal file
8
.ci-config/validators.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
[validator_list_sites]
|
||||
http://vl/vl.json
|
||||
|
||||
[validator_list_keys]
|
||||
ED87E0EA91AAFFA130B78B75D2CC3E53202AA1BD8AB3D5E7BAC530C8440E328501
|
||||
|
||||
[import_vl_keys]
|
||||
ED74D4036C6591A4BDF9C54CEFA39B996A5DCE5F86D11FDA1874481CE9D5A1CDC1
|
||||
67
.github/workflows/nodejs.yml
vendored
67
.github/workflows/nodejs.yml
vendored
@@ -4,7 +4,7 @@
|
||||
name: Node.js CI
|
||||
|
||||
env:
|
||||
XAHAUD_DOCKER_IMAGE: xahauci/xahaud:2025.7.9
|
||||
XAHAUD_VERSION: 2025.12.1-release+2609
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -19,7 +19,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
node-version: [20.x, 22.x, 24.x, 26.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -60,7 +60,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x, 20.x]
|
||||
node-version: [20.x, 22.x, 24.x, 26.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -95,20 +95,55 @@ jobs:
|
||||
- run: npm run build
|
||||
- run: npm test
|
||||
|
||||
download-binary:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- name: cache binary
|
||||
id: cache-binary
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: xahaud
|
||||
key: ${{ runner.os }}-xahaud-${{ env.XAHAUD_VERSION }}
|
||||
|
||||
- name: Download binary
|
||||
if: steps.cache-binary.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
wget https://build.xahau.tech/${{ env.XAHAUD_VERSION }} -q -O xahaud
|
||||
chmod +x xahaud
|
||||
|
||||
integration:
|
||||
runs-on: ubuntu-latest
|
||||
needs: download-binary
|
||||
timeout-minutes: 10
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x, 20.x]
|
||||
node-version: [20.x, 22.x, 24.x, 26.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Restore binary
|
||||
uses: actions/cache/restore@v5
|
||||
with:
|
||||
path: xahaud
|
||||
key: ${{ runner.os }}-xahaud-${{ env.XAHAUD_VERSION }}
|
||||
|
||||
- name: Run docker in background
|
||||
run: |
|
||||
docker run --detach --rm --name xahaud-service -p 6006:6006 --volume "${{ github.workspace }}/.ci-config/":"/opt/xahau/etc/" --health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s --env GITHUB_ACTIONS=true --env CI=true ${{ env.XAHAUD_DOCKER_IMAGE }} /opt/xahau/bin/xahaud -a --conf /opt/xahau/etc/xahaud.cfg
|
||||
docker run --detach --rm \
|
||||
--name xahaud-service \
|
||||
-p 6006:6006 \
|
||||
--volume "${{ github.workspace }}/.ci-config/":"/opt/xahau/etc/" \
|
||||
--volume "${{ github.workspace }}/xahaud":"/opt/xahau/bin/xahaud" \
|
||||
--health-cmd="wget localhost:6006 || exit 1" \
|
||||
--health-interval=5s \
|
||||
--health-retries=10 \
|
||||
--health-timeout=2s \
|
||||
--env GITHUB_ACTIONS=true \
|
||||
--env CI=true \
|
||||
ubuntu:latest /opt/xahau/bin/xahaud -a --conf /opt/xahau/etc/xahaud.cfg
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
@@ -149,11 +184,12 @@ jobs:
|
||||
|
||||
browser:
|
||||
runs-on: ubuntu-latest
|
||||
needs: download-binary
|
||||
timeout-minutes: 10
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
node-version: [20.x, 22.x, 24.x, 26.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -163,9 +199,26 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Restore binary
|
||||
uses: actions/cache/restore@v5
|
||||
with:
|
||||
path: xahaud
|
||||
key: ${{ runner.os }}-xahaud-${{ env.XAHAUD_VERSION }}
|
||||
|
||||
- name: Run docker in background
|
||||
run: |
|
||||
docker run --detach --rm --name xahaud-service -p 6006:6006 --volume "${{ github.workspace }}/.ci-config/":"/opt/xahau/etc/" --health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s --env GITHUB_ACTIONS=true --env CI=true ${{ env.XAHAUD_DOCKER_IMAGE }} /opt/xahau/bin/xahaud -a --conf /opt/xahau/etc/xahaud.cfg
|
||||
docker run --detach --rm \
|
||||
--name xahaud-service \
|
||||
-p 6006:6006 \
|
||||
--volume "${{ github.workspace }}/.ci-config/":"/opt/xahau/etc/" \
|
||||
--volume "${{ github.workspace }}/xahaud":"/opt/xahau/bin/xahaud" \
|
||||
--health-cmd="wget localhost:6006 || exit 1" \
|
||||
--health-interval=5s \
|
||||
--health-retries=10 \
|
||||
--health-timeout=2s \
|
||||
--env GITHUB_ACTIONS=true \
|
||||
--env CI=true \
|
||||
ubuntu:latest /opt/xahau/bin/xahaud -a --conf /opt/xahau/etc/xahaud.cfg
|
||||
|
||||
- name: Setup npm version 9
|
||||
run: |
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"version": "independent",
|
||||
"useWorkspaces": true,
|
||||
"npmClient": "npm"
|
||||
}
|
||||
|
||||
7784
package-lock.json
generated
7784
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -16,10 +16,10 @@
|
||||
"dependencies": {
|
||||
"@xrplf/isomorphic": "file:packages/isomorphic",
|
||||
"@xrplf/secret-numbers": "file:packages/secret-numbers",
|
||||
"xahau": "file:packages/xahau",
|
||||
"xahau-address-codec": "file:packages/xahau-address-codec",
|
||||
"xahau-binary-codec": "file:packages/xahau-binary-codec",
|
||||
"xahau-keypairs": "file:packages/xahau-keypairs",
|
||||
"xahau": "file:packages/xahau"
|
||||
"xahau-keypairs": "file:packages/xahau-keypairs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chai": "^4.2.21",
|
||||
@@ -45,7 +45,7 @@
|
||||
"expect": "^29.3.1",
|
||||
"jest": "^29.3.1",
|
||||
"jest-mock": "^29.3.1",
|
||||
"lerna": "^4.0.0",
|
||||
"lerna": "^9.0.7",
|
||||
"lodash": "^4.17.21",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^2.3.2",
|
||||
|
||||
Reference in New Issue
Block a user