feat: replace kv with cheaper alternative d1 #16
Workflow file for this run
This file contains 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: Checks | |
on: | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
defaults: | |
run: | |
shell: bash | |
env: | |
NAME: 'url-shortener' | |
ACTIONS_RUNNER_DEBUG: true | |
jobs: | |
checks: | |
runs-on: ['ubuntu-latest'] | |
steps: | |
- name: 🔑 Checkout | |
uses: actions/checkout@v4 | |
- name: 🦀 Set up Rust | |
run: | | |
rustup set auto-self-update disable | |
rustup toolchain install 1.81.0 --profile minimal | |
rustup default 1.81.0 | |
- name: Setup Rust Cache | |
uses: Swatinem/[email protected] | |
with: | |
prefix-key: v0 # increment this to bust the cache if needed | |
- name: Install sccache | |
uses: mozilla-actions/[email protected] | |
env: | |
RUSTC_WRAPPER: 'sccache' | |
SCCACHE_GHA_ENABLED: true | |
- name: 🐰 Set up Bun | |
uses: oven-sh/setup-bun@main | |
with: | |
bun-version: 'latest' | |
- name: Format | |
run: | | |
bunx taplo@latest fmt *.toml | |
cargo fmt --all --check | |
- name: Lint | |
run: | | |
bunx taplo@latest lint *.toml | |
cargo clippy --all-targets --all-features -- -D warnings | |
- name: 🛠️ Build worker | |
run: cargo install --quiet worker-build && worker-build --release |