Skip to content

Commit

Permalink
new approach
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Aug 20, 2024
1 parent 270662d commit 2db8932
Showing 1 changed file with 13 additions and 27 deletions.
40 changes: 13 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,60 +8,46 @@ on:
branches:
- main

defaults:
run:
working-directory: ./gloom-rs

jobs:
build-check:
name: Build Check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
path: gloom-rs
- name: Setup Rust
uses: actions-rs/toolchain@v1
uses: moonrepo/setup-rust@v1
with:
toolchain: stable
override: true
components: rustc, cargo
- name: Build Project
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose
run: cargo build --verbose

format-check:
name: Format Check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
path: gloom-rs
- name: Setup Rust
uses: actions-rs/toolchain@v1
uses: moonrepo/setup-rust@v1
with:
toolchain: stable
override: true
components: rustfmt
- name: Check Formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
run: cargo fmt -- --check

lint-check:
name: Lint Check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
path: gloom-rs
- name: Setup Rust
uses: actions-rs/toolchain@v1
uses: moonrepo/setup-rust@v1
with:
toolchain: stable
override: true
components: clippy
- name: Run Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: -- -D warnings
run: cargo clippy --workspace

0 comments on commit 2db8932

Please sign in to comment.