forked from nanocurrency/nano-node
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.22 KB
/
unit_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
47
48
49
name: Unit Tests
on: [push, pull_request]
jobs:
macos_test:
name: macOS
strategy:
fail-fast: false
runs-on: macos-14
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare
run: scripts/ci/prepare/macos/prepare.sh
- name: Build Tests
id: build
run: cargo build --all-targets
- name: Run Tests
if: steps.build.outcome == 'success' && (success() || failure())
run: cargo test -q
linux_test:
name: Linux [${{ matrix.COMPILER }}]
timeout-minutes: 30
strategy:
fail-fast: false
runs-on: ubuntu-22.04
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Prepare
run: sudo -E scripts/ci/prepare/linux/prepare.sh
- name: Build Tests
id: build
run: cargo build --all-targets
- name: Run Tests
if: steps.build.outcome == 'success' && (success() || failure())
run: cargo test -q