Repository navigation
60 lines (53 loc) · 1.61 KB
/
Copy pathci-test-unit.yml
File metadata and controls
60 lines (53 loc) · 1.61 KB
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
name: Run CI - Unit Tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [master, dev]
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '**/build.rs'
- '**/*.proto'
- 'Makefile'
- 'rust-toolchain.toml'
- '.github/workflows/ci-test-unit.yml'
- '.github/actions/setup-build-env/**'
- '.github/actions/setup-solana/**'
pull_request:
types: [opened, reopened, synchronize]
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '**/build.rs'
- '**/*.proto'
- 'Makefile'
- 'rust-toolchain.toml'
- '.github/workflows/ci-test-unit.yml'
- '.github/actions/setup-build-env/**'
- '.github/actions/setup-solana/**'
jobs:
run_make_ci_test:
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout this magicblock-validator
uses: actions/checkout@v5
with:
path: magicblock-validator
- uses: ./magicblock-validator/.github/actions/setup-build-env
with:
build_cache_key_name: "magicblock-validator-ci-test-unit-v001"
- uses: ./magicblock-validator/.github/actions/setup-solana
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Run unit tests
run: |
sudo prlimit --pid $$ --nofile=1048576:1048576
sudo sysctl fs.inotify.max_user_instances=1280
sudo sysctl fs.inotify.max_user_watches=655360
make ci-test-unit
shell: bash
working-directory: magicblock-validator