Skip to content

Commit

Permalink
CI hasFiles package lock json fix.
Browse files Browse the repository at this point in the history
Signed-off-by: Ty D'Angelo <tydangelo18@gmail.com>
  • Loading branch information
tydangelo18 committed Oct 9, 2024
1 parent ff35c45 commit b6e483c
Showing 1 changed file with 59 additions and 63 deletions.
122 changes: 59 additions & 63 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ jobs:
with:
submodules: true

- name: check
run: |
ls -alh
- name: Set up Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -47,70 +43,70 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
# - name: Set up Go
# uses: actions/setup-go@v5
# with:
# go-version: '1.22.x'
# check-latest: true

# - name: Install Taskfile
# uses: arduino/setup-task@v2
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
check-latest: true

- name: Install Taskfile
uses: arduino/setup-task@v2

# - name: Set up KwilDB Docker in Public mode
# run: |
# git clone https://github.com/kwilteam/kwil-db.git /tmp/kwil-db-public
# cd /tmp/kwil-db-public
# go work init && go work use . ./test ./core
# task build:docker
# cd deployments/compose/kwil
# echo "Starting kwil docker"
# docker compose up -d
# cd -

# - name: Install and build kwiljs
# run: |
# npm install
# npm run build
- name: Set up KwilDB Docker in Public mode
run: |
git clone https://github.com/kwilteam/kwil-db.git /tmp/kwil-db-public
cd /tmp/kwil-db-public
go work init && go work use . ./test ./core
task build:docker
cd deployments/compose/kwil
echo "Starting kwil docker"
docker compose up -d
cd -
- name: Install and build kwiljs
run: |
npm install
npm run build
# - name: Run integration tests
# run: |
# chain_id=`curl -X POST http://localhost:8484/rpc/v1 -H "Content-Type: application/json" -d '{"jsonrpc": "2.0", "id": 1, "method": "user.chain_info", "params": {}}' | jq -r '.result.chain_id'`
# echo "Chain ID: $chain_id"
# echo "run KWIL-JS TEST against kwild(http:localhost:8484), with $chain_id"
# PRIVATE_KEY=0000000000000000000000000000000000000000000000000000000000000001 CHAIN_ID=$chain_id GATEWAY_ON=false GAS_ON=false KWIL_PROVIDER=http://localhost:8484 npm run integration
- name: Run integration tests
run: |
chain_id=`curl -X POST http://localhost:8484/rpc/v1 -H "Content-Type: application/json" -d '{"jsonrpc": "2.0", "id": 1, "method": "user.chain_info", "params": {}}' | jq -r '.result.chain_id'`
echo "Chain ID: $chain_id"
echo "run KWIL-JS TEST against kwild(http:localhost:8484), with $chain_id"
PRIVATE_KEY=0000000000000000000000000000000000000000000000000000000000000001 CHAIN_ID=$chain_id GATEWAY_ON=false GAS_ON=false KWIL_PROVIDER=http://localhost:8484 npm run integration
# - name: Cleanup Docker
# if: always()
# run: |
# docker compose -f /tmp/kwil-db-public/deployments/compose/kwil/docker-compose.yml down
# docker system prune -af

# - name: Set up KwilDB Docker in Private mode
# run: |
# git clone https://github.com/kwilteam/kwil-db.git /tmp/kwil-db-private
# cd /tmp/kwil-db-private
# go work init && go work use . ./test ./core
# task build:docker
# cd -
# cd .github/workflows
# docker compose up -d
# cd -
- name: Cleanup Docker
if: always()
run: |
docker compose -f /tmp/kwil-db-public/deployments/compose/kwil/docker-compose.yml down
docker system prune -af
# - name: Install and build kwiljs
# run: |
# npm install
# npm run build
- name: Set up KwilDB Docker in Private mode
run: |
git clone https://github.com/kwilteam/kwil-db.git /tmp/kwil-db-private
cd /tmp/kwil-db-private
go work init && go work use . ./test ./core
task build:docker
cd -
cd .github/workflows
docker compose up -d
cd -
- name: Install and build kwiljs
run: |
npm install
npm run build
# - name: Run integration tests in private mode
# run: |
# chain_id=`curl -X POST http://localhost:8484/rpc/v1 -H "Content-Type: application/json" -d '{"jsonrpc": "2.0", "id": 1, "method": "user.chain_info", "params": {}}' | jq -r '.result.chain_id'`
# echo "Chain ID: $chain_id"
# echo "run KWIL-JS TEST in private mode against kwild(http:localhost:8484), with $chain_id"
# PRIVATE_KEY=0000000000000000000000000000000000000000000000000000000000000001 CHAIN_ID=$chain_id GATEWAY_ON=FALSE GAS_ON=FALSE PRIVATE_MODE=TRUE KWIL_PROVIDER=http://localhost:8484 npm run integration
- name: Run integration tests in private mode
run: |
chain_id=`curl -X POST http://localhost:8484/rpc/v1 -H "Content-Type: application/json" -d '{"jsonrpc": "2.0", "id": 1, "method": "user.chain_info", "params": {}}' | jq -r '.result.chain_id'`
echo "Chain ID: $chain_id"
echo "run KWIL-JS TEST in private mode against kwild(http:localhost:8484), with $chain_id"
PRIVATE_KEY=0000000000000000000000000000000000000000000000000000000000000001 CHAIN_ID=$chain_id GATEWAY_ON=FALSE GAS_ON=FALSE PRIVATE_MODE=TRUE KWIL_PROVIDER=http://localhost:8484 npm run integration
# - name: Cleanup Docker
# if: always()
# run: |
# docker compose -f .github/workflows/docker-compose.yml down
# docker system prune -af
- name: Cleanup Docker
if: always()
run: |
docker compose -f .github/workflows/docker-compose.yml down
docker system prune -af

0 comments on commit b6e483c

Please sign in to comment.