Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
Signed-off-by: danbugs <[email protected]>
  • Loading branch information
danbugs committed Dec 24, 2023
1 parent f5427a9 commit 9919395
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: CI

on:
push:
Expand All @@ -7,7 +7,27 @@ on:
pull_request:

jobs:
lint-and-format:
name: Lint with clippy and check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy, rustfmt
override: true

- name: Check formatting
run: cargo fmt -- --check

- name: Clippy check
run: cargo clippy -p smithe_backend -p smithe_database -p smithe_lib -p startgg -- -D warnings
build:
needs: lint-and-format
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
Expand All @@ -23,7 +43,6 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down

0 comments on commit 9919395

Please sign in to comment.