From 3f930cf9febb2971d8eeb94699477bfd0c884f54 Mon Sep 17 00:00:00 2001 From: Javier Viola Date: Mon, 17 Feb 2025 10:14:35 +0100 Subject: [PATCH] add setup test in ci --- .github/workflows/setup-tests.yml | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/setup-tests.yml diff --git a/.github/workflows/setup-tests.yml b/.github/workflows/setup-tests.yml new file mode 100644 index 000000000..386993ea6 --- /dev/null +++ b/.github/workflows/setup-tests.yml @@ -0,0 +1,42 @@ +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 + +permissions: {} + +jobs: + setup_test: + strategy: + matrix: + target: [ubunu-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: | + PDW=$(pwd) + mkdir /tmp/a + cd /tmp/a + $PWD/packages/cli/dist/cli.js setup -y all + working-directory: "./javascript" + - name: Clean + run: rm -rf /tmp/a