Skip to content

Commit

Permalink
test updated action script
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr Martian committed Nov 1, 2024
1 parent 3ea09e6 commit 54eebd9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
with:
submodules: recursive
fetch-depth: 0
path: s2-tools-checkout # This will create a new directory to avoid nesting

- name: Set up Bun
uses: oven-sh/setup-bun@v1
Expand All @@ -34,25 +35,21 @@ jobs:
with:
toolchain: nightly
override: true

- name: Install Rustfmt
run: rustup component add rustfmt --toolchain nightly

- name: Install Clippy
run: rustup component add clippy --toolchain nightly
components: rustfmt, clippy

- name: Build Rust project
run: cargo build
shell: bash

- name: Run Clippy
run: cargo clippy --workspace --package geometry -- -D warnings
shell: bash

- name: Build Rust project
run: cargo +nightly build
shell: bash
working-directory: s2-tools-checkout/rust/geometry

- name: Check Formatting
run: cargo +nightly fmt -- --check
run: cargo fmt -- --check
shell: bash

- name: Run Rust tests
run: cargo +nightly test --lib
run: cargo test --lib
shell: bash
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ default-members = [
]

[workspace.package]
name = "s2-tools"
# name = "s2-tools"
version = "1.0.0"
edition = "2021"
authors = ["Craig O'Connor <[email protected]>"]
Expand Down

0 comments on commit 54eebd9

Please sign in to comment.