-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (39 loc) · 1.04 KB
/
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
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