Skip to content

Commit

Permalink
ghwf fixes (?) | README updates
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Sep 21, 2023
1 parent 3f8d210 commit 76e4485
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 16 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ 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: ./api

fmt:
name: Format
Expand All @@ -39,10 +40,12 @@ 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: ${{ env.API_DIR}} --all -- --check
args: --all -- --check

clippy:
name: Clippy
Expand All @@ -55,10 +58,12 @@ 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: ${{ env.API_DIR}} --all-targets --all-features -- -D warnings
args: --all-targets --all-features -- -D warnings

check:
name: Check
Expand All @@ -73,11 +78,13 @@ 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
env:
RUSTFLAGS: ${{ env.API_DIR}} -D warnings
RUSTFLAGS: -D warnings

coverage:
name: Code Coverage
Expand All @@ -90,7 +97,9 @@ 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: ${{ env.API_DIR}} --verbose --workspace
args: --verbose --workspace
18 changes: 9 additions & 9 deletions .github/workflows/ingestion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@ on:
branches:
- main

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v2
with:
java-version: "11"
java-version: 11
distribution: "temurin"
- name: Install SBT
run: |
curl -L -o sbt-1.5.5.deb

- name: Set up Scala
uses: olafurpg/setup-scala@v13

- name: Run Tests
working-directory: ingestion
run: sbt test

- name: Upload Dependency Graph
uses: scalacenter/sbt-dependency-submission@ab086b50c947c9774b70f39fc7f6e20ca2706c91
with:
Expand Down
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# turbine
<h1 align="center">turbine</h1>
<div align="center">
<strong>
Natural-language query engine for Generate written components, endpoints, and code snippets
</strong>
</div>

Natural-language query engine for Generate written components, endpoints, and code snippets.
<br />

<div align="center">
<!-- API Actions -->
<a href="https://github.com/GenerateNU/turbine/actions/workflows/api.yml">
<img src="https://github.com/GenerateNU/turbine/actions/workflows/api.yml/badge.svg"
alt="API actions status" />
</a>
<!-- Ingestion Actions -->
<a href="https://github.com/GenerateNU/turbine/actions/workflows/ingestion.yml">
<img src="https://github.com/GenerateNU/turbine/actions/workflows/ingestion.yml/badge.svg"
alt="Ingestion actions status" />
</a>
</div>

0 comments on commit 76e4485

Please sign in to comment.