-
Notifications
You must be signed in to change notification settings - Fork 174
68 lines (59 loc) · 1.72 KB
/
juno-test.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
66
67
68
name: Juno Test
on:
push:
branches:
- main
- develop
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Run Tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, ubuntu-arm64-4-core]
runs-on: ${{ matrix.os }}
env:
VM_DEBUG: true
steps:
- uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
vm/rust
core/rust
starknet/compiler/rust
- name: Install deps
run: make install-deps
- name: Install Jemalloc (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update -qq && sudo apt-get install -y libjemalloc-dev libjemalloc2 libbz2-dev
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: brew install jemalloc
- name: Tests (Coverage)
if: matrix.os == 'ubuntu-latest'
run: make test-cover
- name: Tests (No Coverage)
if: matrix.os != 'ubuntu-latest'
run: make test
# Tests with race condition detector are flaky; we're disabling them for now
# - name: Tests (Race Detection)
# if: matrix.os == 'ubuntu-latest'
# run: make test-race
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: coverage.out