Skip to content

Merge pull request #29 from omnia-network/lorenzo #137

Merge pull request #29 from omnia-network/lorenzo

Merge pull request #29 from omnia-network/lorenzo #137

Workflow file for this run

name: IC WS Gateway tests
# only run when a commit is pushed to the main branch
on:
push:
branches:
- main
- dev
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
jobs:
unit-and-integration-tests:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: "tests/package-lock.json"
- uses: actions-rs/toolchain@v1
with:
toolchain: "stable"
- uses: dfinity/setup-dfx@main
with:
dfx-version: 0.17.0
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- name: Run unit tests
run: ./scripts/ci_cd_test_unit.sh
- name: Prepare environment for integration tests
run: ./scripts/prepare_integration_tests.sh
- name: Run integration tests
run: ./scripts/ci_cd_test_integration.sh