-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (55 loc) · 2.23 KB
/
basic.yml
File metadata and controls
67 lines (55 loc) · 2.23 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
61
62
63
64
65
66
67
on: [pull_request]
name: Basic Checks
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: short
CARGO_TERM_COLOR: always
WAVS_SUBMISSION_MNEMONIC: "test test test test test test test test test test test junk"
WAVS_AGGREGATOR_EVM_CREDENTIAL: "test test test test test test test test test test test junk"
WAVS_CLI_EVM_CREDENTIAL: "test test test test test test test test test test test junk"
WAVS_COSMOS_SUBMISSION_MNEMONIC: "reward index time stem expire cheap worth fence coil option treat ensure install entry zone mule benefit success remain rebuild inherit eyebrow cluster sheriff"
WAVS_CLI_COSMOS_MNEMONIC: "reward index time stem expire cheap worth fence coil option treat ensure install entry zone mule benefit success remain rebuild inherit eyebrow cluster sheriff"
jobs:
test-poa:
name: Test Suite (POA)
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Configure POA middleware
run: |
sed -i 's/evm_middleware_type = ".*"/evm_middleware_type = "poa"/' packages/layer-tests/layer-tests.toml
- name: Build tests first
run: cargo test --workspace --no-run --locked
- name: Run tests
run: cargo test --workspace --locked --all-features -- --nocapture --test-threads=4
env:
RUST_LOG: info
test-suite:
name: Test Suite
runs-on: ubuntu-latest
needs: [test-poa]
if: always()
steps:
- name: Check test results
run: |
if [ "${{ needs.test-poa.result }}" != "success" ]; then
echo "Test job failed"
exit 1
fi
echo "All test jobs passed"
lint:
name: Lint
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Check wavs-types standalone feature builds
run: cargo check -p wavs-types --no-default-features --features full --locked