Skip to content

[CI] Allow sourcing test manager script (#1964) #18

[CI] Allow sourcing test manager script (#1964)

[CI] Allow sourcing test manager script (#1964) #18

Workflow file for this run

name: Zombienet Setup Tests
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
ZOMBIE_TRACE: 1
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions: {}
jobs:
setup_test:
strategy:
matrix:
target: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.target }}
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup node
uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install && npm update
working-directory: "./javascript"
- run: npm run build
working-directory: "./javascript"
- run: |
JS_DIR=$(pwd)
echo "javascript directory: ${JS_DIR}"
mkdir /tmp/a
cd /tmp/a
DEBUG=zombie-cli::setup node $JS_DIR/packages/cli/dist/cli.js setup -y all
working-directory: "./javascript"
- run: ls -ltr /tmp/a