-
Notifications
You must be signed in to change notification settings - Fork 31
35 lines (32 loc) · 794 Bytes
/
ci.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
name: Continuous Integration
on:
pull_request:
paths:
- 'go-peer/**'
- 'rust-peer/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust:
runs-on: ubuntu-latest
env:
RUSTFLAGS: '-Dwarnings' # Never tolerate warnings.
defaults:
run:
working-directory: ./rust-peer
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo fmt -- --check
- run: cargo clippy
- run: cargo test
go-check:
uses: libp2p/uci/.github/workflows/[email protected]
with:
go-version: '1.21.x'
go-test:
uses: libp2p/uci/.github/workflows/[email protected]
with:
go-versions: '["1.21.x"]'