data_bucket 0.5.2

DataBucket is container for WorkTable's data
Documentation
name: Rust

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

permissions:
  contents: read
  pull-requests: write  

env:
  CARGO_TERM_COLOR: always

jobs:
  build:

    runs-on: ubicloud-standard-2
    timeout-minutes: 10

    steps:
    - uses: actions/checkout@v4
    - uses: Swatinem/rust-cache@v2
      with:
        cache-on-failure: "true"
        add-job-id-key: "false"
    - name: Build
      run: cargo build --verbose
    - name: Run tests
      run: cargo test --verbose


  clippy_check:

    runs-on: ubicloud-standard-2
    timeout-minutes: 10

    steps:
      - uses: actions/checkout@v4
      - uses: Swatinem/rust-cache@v2
        with:
          cache-on-failure: "true"
          add-job-id-key: "false"
      # Plain cargo invocation instead of the archived actions-rs/clippy-check:
      # that action fails with "Resource not accessible by integration" on
      # push events because it needs `checks: write` to create a Check Run,
      # which this workflow's token does not (and should not) grant. The
      # command's exit code is all we need to gate the job.
      - name: Clippy (deny warnings)
        run: cargo clippy --all-targets --all-features -- -D warnings