-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 999 Bytes
/
Copy pathci.yml
File metadata and controls
43 lines (35 loc) · 999 Bytes
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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check
run: cargo fmt --all --check -- --config format_code_in_doc_comments=true
check:
name: Check crate
runs-on: ubuntu-latest
strategy:
matrix:
args:
- "" # Default features
- "--no-default-features --features nativetls" # Native TLS feature
- "--features socks" # Socks feature
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Rust Cache
uses: Swatinem/rust-cache@v2.7.8
- name: Check
run: cargo check ${{ matrix.args }}
- name: Clippy
run: cargo clippy ${{ matrix.args }} -- -D warnings
- name: Test
run: cargo test ${{ matrix.args }}