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

:S

:S #281

Workflow file for this run

name: bb_rust
# Refer to https://help.github.com/en/articles/workflow-syntax-for-github-actions for documentation on Actions.
on:
push:
paths:
- "src/**"
- "Cargo.toml"
- ".github/workflows/main.yml"
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt
- run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: clippy
- uses: Swatinem/rust-cache@v1
- run: cargo clippy --all-targets -- -D warnings
features:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- FEATURE: aws_lambda_utils
- FEATURE: graphql,arbitrary
- FEATURE: misc
- FEATURE: napi
- FEATURE: services_apigateway
- FEATURE: services_cloudformation
- FEATURE: services_cognitoidentityprovider
- FEATURE: services_dynamodb
- FEATURE: services_eventbridge
- FEATURE: services_iot
- FEATURE: services_iotdataplane
- FEATURE: services_lambda
- FEATURE: services_organizations
- FEATURE: services_s3
- FEATURE: services_secretsmanager
- FEATURE: services_ssm
- FEATURE: services_sts
- FEATURE: types,arbitrary
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- run: cargo check --features ${{ matrix.FEATURE }}
nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: Swatinem/rust-cache@v1
- run: cargo check --all-features
test:
runs-on: ubuntu-latest
services:
dynamodb:
image: amazon/dynamodb-local
ports:
- 8001:8001
- 8000:8000
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- run: cargo test --all-features