Skip to content

Commit

Permalink
fix: temp ci
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az committed Nov 10, 2024
1 parent 2bc2c0e commit ebd58c2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Checks

n

on:
pull_request:
workflow_dispatch:
Expand All @@ -22,38 +24,37 @@ jobs:
- name: 🔑 Checkout
uses: actions/checkout@v4

- name: Install Nix
uses: cachix/install-nix-action@v30
- 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 Cachix
uses: cachix/cachix-action@v15
- name: Setup Rust Cache
uses: Swatinem/[email protected]
with:
name: 'devenv'
prefix-key: v0 # increment this to bust the cache if needed

- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
- name: Install sccache
uses: mozilla-actions/[email protected]
env:
RUSTC_WRAPPER: 'sccache'
SCCACHE_GHA_ENABLED: true

- name: Install direnv
run: |
nix profile install nixpkgs#direnv
nix profile install nixpkgs#nix-direnv
- name: 🐰 Set up Bun
uses: oven-sh/setup-bun@main
with:
bun-version: 'latest'

- name: Format
run: |
direnv allow
taplo fmt *.toml
bunx taplo@latest fmt *.toml
cargo fmt --all --check
nixfmt *.nix --width=100
sqlfluff format --dialect sqlite schema.sql
- name: Lint
run: |
direnv allow
taplo lint *.toml
sqlfluff lint --dialect sqlite schema.sql
bunx taplo@latest lint *.toml
cargo clippy --all-targets --all-features -- -D warnings
- name: Build
run: |
direnv allow
cargo build --release --target wasm32-unknown-unknown
- name: 🛠️ Build worker
run: cargo install --quiet worker-build && worker-build --release
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# URL Shortener - Cloudflare Worker

## Usage

> [!NOTE]
Expand Down

0 comments on commit ebd58c2

Please sign in to comment.