Skip to content

Commit

Permalink
ci: ensure code compiles for shuttle
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Dec 23, 2024
1 parent df3168a commit c492ad0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/ensure_shuttle_mode.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ jobs:
run: cargo run --bin switch-db -- standalone
- name: Linting
run: cargo clippy --all-features -- -D warnings

wasm:
name: Clippy WASM
runs-on: ubuntu-latest
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/verify_shuttle_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Verify Shuttle Build

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
types: [ opened, synchronize, reopened ]
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
clippy_shuttle:
name: Clippy (Shuttle)
runs-on: ubuntu-latest
steps:
- uses: wykies/checkout@main
with:
submodules: recursive
- uses: wykies/setup-rust-toolchain@main
with:
components: clippy
- name: Load sqlx query files for shuttle version
run: cargo run --bin switch-db --no-edit-only-copy shuttle
- name: Linting
run: cargo clippy --package chat-app-server --no-default-features --features shuttle -- -D warnings

0 comments on commit c492ad0

Please sign in to comment.