-
Notifications
You must be signed in to change notification settings - Fork 93
46 lines (41 loc) · 1.2 KB
/
setup-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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