-
Notifications
You must be signed in to change notification settings - Fork 10
65 lines (52 loc) · 1.44 KB
/
integration_cli.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Integration
on:
push:
branches:
- main
- dev
pull_request:
jobs:
test:
name: AD4M cli
runs-on: macos-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Fetch source code
uses: actions/checkout@v2
- name: git init submodule
run: git submodule init && git submodule update
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
override: true
toolchain: 1.71.1
- name: Cache cargo
id: cache-cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo
- run: rustup target add wasm32-unknown-unknown
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.32.4
- name: Yarn Install
run: yarn install
- name: Yarn Build (builds entire workspace)
run: yarn build
- name: Run binaries test script
run: ./tests/bats/bin/bats tests/binaries.bats || cat ~/Library/Logs/DiagnosticReports/*
- name: Run integration test script
run: ./tests/bats/bin/bats tests/integration.bats || cat ~/Library/Logs/DiagnosticReports/*