Skip to content

Commit

Permalink
ghwf fixes (?) | update name
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Sep 21, 2023
1 parent 76e4485 commit d370f16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

env:
CARGO_TERM_COLOR: always
API_DIR: ./api
MANIFEST_PATH: --manifest-path api/Cargo.toml

jobs:
test:
Expand All @@ -23,11 +23,10 @@ jobs:
profile: minimal
toolchain: stable
override: true
- name: Change to API directory
run: cd ${{ env.API_DIR }}
- uses: actions-rs/cargo@v1
with:
command: test
args: ${{ env.MANIFEST_PATH }}

fmt:
name: Format
Expand All @@ -40,12 +39,11 @@ jobs:
toolchain: stable
override: true
- run: rustup component add rustfmt
- name: Change to API directory
run: cd ${{ env.API_DIR }}

- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
args: ${{ env.MANIFEST_PATH }} --all -- --check

clippy:
name: Clippy
Expand All @@ -58,12 +56,10 @@ jobs:
toolchain: stable
override: true
- run: rustup component add clippy
- name: Change to API directory
run: cd ${{ env.API_DIR }}
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D warnings
args: ${{ env.MANIFEST_PATH }} --all-targets --all-features -- -D warnings

check:
name: Check
Expand All @@ -78,11 +74,10 @@ jobs:
- uses: Swatinem/rust-cache@v1
with:
key: ${{ runner.os }}-check
- name: Change to API directory
run: cd ${{ env.API_DIR }}
- uses: actions-rs/cargo@v1
with:
command: check
args: ${{ env.MANIFEST_PATH }}
env:
RUSTFLAGS: -D warnings

Expand All @@ -97,9 +92,7 @@ jobs:
toolchain: stable
override: true
- run: cargo install cargo-tarpaulin
- name: Change to API directory
run: cd ${{ env.API_DIR }}
- uses: actions-rs/cargo@v1
with:
command: tarpaulin
args: --verbose --workspace
args: ${{ env.MANIFEST_PATH }} --verbose --workspace
2 changes: 1 addition & 1 deletion ingestion/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ThisBuild / organizationName := "example"

lazy val root = (project in file("."))
.settings(
name := "pineapple",
name := "turbine",
libraryDependencies += munit % Test
)

Expand Down

0 comments on commit d370f16

Please sign in to comment.