Skip to content

Add integration tests (#30) #67

Add integration tests (#30)

Add integration tests (#30) #67

name: build-by-branch
on:
push:
branches:
- main
- feature/*
- fix/*
paths-ignore:
- "**.md"
pull_request:
branches:
- main
paths-ignore:
- "**.md"
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- name: Check code style
run: cargo fmt -- --check
continue-on-error: true
- name: Build
run: cargo build --release --all-features
- name: Check code
run: cargo clippy
continue-on-error: true
- name: Tests
run: cargo test