added keepalive=false in createRequest #6576
Workflow file for this run
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
name: Node.js CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }} | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
jobs: | |
lint-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node: | |
- 'lts/hydrogen' | |
- 'lts/iron' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: npm ci | |
- run: npm run build | |
- run: npm run lint | |
- run: npm run build-docs | |
- run: npm run test -- --runInBand | |
- name: Codecov | |
uses: codecov/[email protected] | |
with: | |
file: .coverage/*.json | |
env: | |
CI: true | |
RUN_INTEGRATION: true | |
integration-tests-testnet: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
strategy: | |
matrix: | |
include: | |
- testnet: parisnet | |
testnet_uppercase: PARISNET | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/hydrogen | |
- run: npm ci | |
- run: npm run build | |
- if: ${{ !github.event.pull_request.head.repo.fork }} | |
name: Tailscale | |
uses: tailscale/github-action@v1 | |
with: | |
authkey: ${{ secrets.TAILSCALE_AUTHKEY }} | |
version: 1.32.2 | |
- run: npm -w integration-tests run test:${{ matrix.testnet }} -- --maxWorkers=4 | |
env: | |
# Ternary operator workaround | |
TEZOS_RPC_${{ matrix.testnet_uppercase }}: ${{ github.event.pull_request.head.repo.fork && format('https://{0}.ecadinfra.com', matrix.testnet) || null }} | |
integration-tests-flextesa: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
strategy: | |
matrix: | |
include: | |
- protocol: Nairobi | |
testnet: nairobinet | |
testnet_uppercase: NAIROBINET | |
flextesa_docker_image: oxheadalpha/flextesa:20230607 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/hydrogen | |
## The 4 Bootstrap Accounts (alias, pk, pkh, sk) | |
# alice,edpkvGfYw3LyB1UcCahKQk4rF2tvbMUk8GFiTuMjL75uGXrpvKXhjn,tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb,unencrypted:edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq | |
# bob,edpkurPsQ8eUApnLUJ9ZPDvu98E8VNj4KtJa1aZr16Cr5ow5VHKnz4,tz1aSkwEot3L2kmUvcoxzjMomb9mvBNuzFK6,unencrypted:edsk3RFfvaFaxbHx8BMtEW1rKQcPtDML3LXjNqMNLCzC3wLC1bWbAt | |
# charlie,edpkuvMuRuZ6ZbAquJH1XxBFfUmuBFz1zp9ENEqjCVgLp3NcY3Ww9M,tz1RDVcKmFcqzvTpJirvg4JaUVgZbjtnRT26,unencrypted:edsk3RgWvbKKA1atEUcaGwivge7QtckHkTL9nQJUXQKY5r8WKp4pF4 | |
# donald,edpkvXGp1BMZxHkwg3mKnWfJYS6HTJ5JtufD8YXxLtH8UKqLZkZVun,tz1eSWp4B9s1qhtNMMNXAkaf2oqCnDHd2iAm,unencrypted:edsk3S8mG2sSBmSRbikAcZVLCz4SrCq4DjmsQRic6MGktqNFijfrS2 | |
- name: Generate Flextesa bootstrap accounts | |
run: |- | |
echo "alice=$(docker run --rm ${{ matrix.flextesa_docker_image }} flextesa key alice)" >> $GITHUB_ENV | |
echo "bob=$(docker run --rm ${{ matrix.flextesa_docker_image }} flextesa key bob)" >> $GITHUB_ENV | |
echo "charlie=$(docker run --rm ${{ matrix.flextesa_docker_image }} flextesa key charlie)" >> $GITHUB_ENV | |
echo "donald=$(docker run --rm ${{ matrix.flextesa_docker_image }} flextesa key donald)" >> $GITHUB_ENV | |
- name: Provision Flextesa ${{ matrix.protocol }} container | |
run: |- | |
docker run \ | |
--rm \ | |
--name my-sandbox \ | |
--detach \ | |
-p 20000:20000 \ | |
${{ matrix.flextesa_docker_image }} \ | |
flextesa mini-net \ | |
--root /tmp/mini-box --size 1 \ | |
--set-history-mode N000:archive \ | |
--number-of-b 1 \ | |
--balance-of-bootstrap-accounts tez:100_000_000 \ | |
--time-b 1 \ | |
--add-bootstrap-account="${alice}@2_000_000_000_000" \ | |
--add-bootstrap-account="${bob}@2_000_000_000_000" \ | |
--add-bootstrap-account="${charlie}@2_000_000_000_000" \ | |
--add-bootstrap-account="${donald}@2_000_000_000_000" \ | |
--no-daemons-for=donald \ | |
--until-level 200_000_000 \ | |
--protocol-kind ${{ matrix.protocol }} | |
- run: npm ci | |
- run: npm run build | |
- run: source ./integration-tests/sandbox-env.sh | |
- run: npm -w integration-tests run test:nairobinet-secret-key sandbox-ballot-operation.spec.ts | |
- run: npm -w integration-tests run test:nairobinet-secret-key sandbox-drain-delegate-operation.spec.ts | |
env: | |
RUN_${{ matrix.testnet_uppercase }}_WITH_SECRET_KEY: true | |
SECRET_KEY: edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq | |
TEZOS_RPC_${{ matrix.testnet_uppercase }}: http://localhost:20000 | |
POLLING_INTERVAL_MILLISECONDS: 100 | |
RPC_CACHE_MILLISECONDS: 0 | |
TEZOS_BAKER: tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb |