Skip to content

feat: replace kv with cheaper alternative d1 #12

feat: replace kv with cheaper alternative d1

feat: replace kv with cheaper alternative d1 #12

Workflow file for this run

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: Install Nix
uses: cachix/install-nix-action@v30
- name: Setup Cachix
uses: cachix/cachix-action@v15
with:
name: 'devenv'
- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
- name: Format
shell: devenv shell bash -- -e {0}
run: |
taplo fmt *.toml
cargo fmt --all --check
nixfmt *.nix --width=100
sqlfluff format --dialect sqlite schema.sql
- name: Lint
shell: devenv shell bash -- -e {0}
run: |
taplo lint *.toml
sqlfluff lint --dialect sqlite schema.sql
cargo clippy --all-targets --all-features -- -D warnings
- name: Build
shell: devenv shell bash -- -e {0}
run: cargo build --release --target wasm32-unknown-unknown