Skip to content

feat: POST /v1/links support (#8) #26

feat: POST /v1/links support (#8)

feat: POST /v1/links support (#8) #26

Workflow file for this run

name: development
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74.0
profile: minimal
- name: Install Cargo Lambda
run: pip install cargo-lambda==1.0.0
- name: Build lambda
run: cargo lambda build --release
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74.0
profile: minimal
components: rustfmt, clippy
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74.0
profile: minimal
components: rustfmt, clippy
- name: Unit Test
run: cargo test --lib
- name: Integration Test
run: cargo test --test '*'