chore: add tests for Peregrine #2
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: Lint and Test | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- "**.ts" | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
lint-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install minikube | |
uses: medyagh/[email protected] | |
- name: Download source | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Lint | |
run: yarn lint | |
- name: Check dependency duplication | |
run: if ! yarn dedupe --check; then echo "::warning ::Dependencies may be deduplicated"; fi; | |
- name: Check versioning | |
run: yarn version check | |
- name: Spin up network (in the background) | |
run: yarn test:e2e:start-network > /dev/null 2> /dev/null & | |
# This is necessary since the `zombienet spawn` process never exits. | |
# TODO: A better solution would be to write a script to run on top of `zombienet/orchestrator` instead of `zombienet/cli`. | |
- name: Wait 5m for the network to be up | |
run: sleep 5m | |
shell: bash | |
- name: Run integration tests | |
run: yarn test:e2e |