feat: replace kv with cheaper alternative d1 #11
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: 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 | |
run: | | |
taplo fmt *.toml | |
cargo fmt --all --check | |
nixfmt *.nix --width=100 | |
sqlfluff format --dialect sqlite schema.sql | |
- name: Lint | |
run: | | |
taplo lint *.toml | |
sqlfluff lint --dialect sqlite schema.sql | |
cargo clippy --all-targets --all-features -- -D warnings | |
- name: Build | |
run: | | |
# runs: `cargo build --release --target wasm32-unknown-unknown` | |
build |