Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

slightly improved http error status codes and db health check #562

slightly improved http error status codes and db health check

slightly improved http error status codes and db health check #562

Workflow file for this run

name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
pkg: ["lib", ".", "sdk", "sdk-wasm"]
runs-on: ubuntu-latest
steps:
- name: Checkout Kepler repository
uses: actions/checkout@v2
- name: Add WASM target
if: ${{ matrix.pkg == 'sdk-wasm' }}
run: |
rustup target add wasm32-unknown-unknown
- name: Build
working-directory: ${{ matrix.pkg }}
run: cargo build
- name: Run tests
if: ${{ matrix.pkg != 'sdk-wasm' }}
working-directory: ${{ matrix.pkg }}
run: cargo test
clippy:
strategy:
fail-fast: false
matrix:
pkg: ["lib", ".", "sdk", "sdk-wasm"]
runs-on: ubuntu-latest
steps:
- name: Checkout Kepler repository
uses: actions/checkout@v2
- name: Add WASM target
if: ${{ matrix.pkg == 'sdk-wasm' }}
run: |
rustup target add wasm32-unknown-unknown
- name: Clippy
working-directory: ${{ matrix.pkg }}
run: RUSTFLAGS="-Dwarnings" cargo clippy
fmt:
strategy:
fail-fast: false
matrix:
pkg: ["lib", ".", "sdk", "sdk-wasm"]
runs-on: ubuntu-latest
steps:
- name: Checkout Kepler repository
uses: actions/checkout@v2
- name: Add WASM target
if: ${{ matrix.pkg == 'sdk-wasm' }}
run: |
rustup target add wasm32-unknown-unknown
- name: Fmt
working-directory: ${{ matrix.pkg }}
run: cargo fmt -- --check