Skip to content

Commit

Permalink
Fix example and remove tarpaulin
Browse files Browse the repository at this point in the history
  • Loading branch information
sitegui committed Jun 24, 2024
1 parent e1719e0 commit bb8d29f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,32 +86,3 @@ jobs:
with:
command: clippy
args: --all-features -- -D warnings

coverage:
name: Code coverage
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
args: '--all-features --ignore-tests --out Lcov'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
S3_KEY_PREFIX: ${{ secrets.S3_KEY_PREFIX }}
- name: Upload to Coveralls
# upload only if push
if: ${{ github.event_name == 'push' }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './lcov.info'
7 changes: 2 additions & 5 deletions feattle/examples/full.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use axum::Server;
use feattle::*;
use rusoto_core::Region;
use rusoto_s3::S3Client;
use std::collections::BTreeMap;
use std::env;
use std::error::Error;
Expand Down Expand Up @@ -77,9 +75,8 @@ async fn main() -> Result<(), Box<dyn Error>> {
env_logger::init();

// Create the S3 persistence
let client = S3Client::new(Region::default());
let timeout = Duration::from_secs(10);
let s3_storage = Arc::new(S3::new(client, s3_bucket, s3_key_prefix, timeout));
let config = aws_config::load_from_env().await;
let s3_storage = Arc::new(S3::new(&config, s3_bucket, s3_key_prefix));

// Create the instance
let features = Arc::new(SimulationToggles::new(s3_storage));
Expand Down

0 comments on commit bb8d29f

Please sign in to comment.