Skip to content

Merge pull request #50 from khyiengkc/feat/api-client-http-module #19

Merge pull request #50 from khyiengkc/feat/api-client-http-module

Merge pull request #50 from khyiengkc/feat/api-client-http-module #19

Workflow file for this run

name: CI
on:
push:
branches: ["**"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build
run: cargo build --all-targets
- name: Run tests
run: cargo test
- name: Clippy lint
run: cargo clippy -- -D warnings
- name: Check formatting
run: cargo fmt --check