feat: Support throughput throttling #16
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| env: | |
| RUSTFLAGS: -D warnings | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Rust Toolchain | |
| run: rustup toolchain install stable --profile minimal --component rustfmt clippy --no-self-update | |
| - name: Run rustfmt | |
| run: cargo fmt --check | |
| - name: Run Clippy | |
| run: cargo clippy --no-deps -- -D warnings | |
| docker: | |
| name: Docker | |
| runs-on: ubuntu-latest | |
| if: ${{ (github.ref_name == 'master') }} | |
| env: | |
| DOCKER_IMAGE: ghcr.io/getsentry/spangen | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Authenticate with GHCR | |
| run: docker login ghcr.io -u '${{ github.actor }}' -p '${{ secrets.GITHUB_TOKEN }}' | |
| - name: Build and Push Docker Image | |
| run: docker build --push --tag $DOCKER_IMAGE:latest . |