-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (51 loc) · 1.51 KB
/
ci.yaml
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
name: CI
on: [ push, pull_request ]
jobs:
build:
name: "Build & Lint"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ "windows-latest", "macos-latest", "ubuntu-latest" ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Rust
run: |
rustup toolchain install stable --profile minimal --no-self-update
rustup default stable
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --release
- name: Check
# Only run on Ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: cargo check
- name: Clippy
# Only run on Ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: cargo clippy
- name: Style
# Only run on Ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: cargo fmt --all -- --check
- name: Test
# Don't run on Windows because Unix sockets are not available.
if: ${{ matrix.os != 'windows-latest' }}
run: cargo test
- name: E2E
shell: bash
run: |
# Start a Deltio instance in the background
./target/release/deltio --bind 0.0.0.0:8085 --log trace &
# Run the E2E smoke test
cd e2e
cargo run
concurrency:
cancel-in-progress: true
group: ci-${{ github.ref }}