Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml → .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: CI
name: elixir

"on":
pull_request:
Expand All @@ -19,7 +19,6 @@ env:

jobs:
lint:
name: Lint
runs-on: blacksmith-2vcpu-ubuntu-2404

steps:
Expand Down Expand Up @@ -55,7 +54,6 @@ jobs:
run: mix credo

format:
name: Format
runs-on: blacksmith-2vcpu-ubuntu-2404

steps:
Expand Down Expand Up @@ -91,7 +89,6 @@ jobs:
run: mix format --check-formatted

test:
name: Test
runs-on: blacksmith-2vcpu-ubuntu-2404

services:
Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
name: rust

"on":
push:
branches:
- main
pull_request:

jobs:
lint:
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Clippy
run: cargo clippy --workspace --all-features -- -D warnings

fmt:
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Format check
run: cargo fmt --check

test:
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Test
run: cargo test --workspace
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ npm-debug.log

/.direnv/
/.nix/


# Added by cargo

/target
Loading
Loading