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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @geofmureithi
32 changes: 32 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## Description

Brief description of what this PR does.

## Type of Change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Documentation update
- [ ] Performance improvement
- [ ] Refactoring (no functional changes)

## Testing

- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have run the existing tests and they pass
- [ ] I have run `cargo fmt` and `cargo clippy`

## Checklist

- [ ] My code follows the code style of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes

## Additional Notes

Any additional information, context, or screenshots about the pull request here.
39 changes: 39 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: 2
updates:
# Enable version updates for Cargo
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "06:00"
open-pull-requests-limit: 10
reviewers:
- "geofmureithi"
assignees:
- "geofmureithi"
commit-message:
prefix: "deps"
include: "scope"
labels:
- "dependencies"
- "rust"

# Enable version updates for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "06:00"
open-pull-requests-limit: 5
reviewers:
- "geofmureithi"
assignees:
- "geofmureithi"
commit-message:
prefix: "ci"
include: "scope"
labels:
- "dependencies"
- "github-actions"
14 changes: 14 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Changelog"
permissions:
contents: read
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
branches: [ main, develop ]

jobs:
# Enforces the update of a changelog file on every pull request
changelog:
runs-on: ubuntu-latest
steps:
- uses: dangoslen/changelog-enforcer@v3
202 changes: 202 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
name: CI

permissions:
contents: read

on:
push:
branches: [main, develop]
pull_request:

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

jobs:
compile-web:
name: Compile Board Web Assets
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [stable, beta]
# include:
# - os: ubuntu-latest
# rust: nightly
steps:
- name: Checkout sources
uses: actions/checkout@v6

- name: Install cargo-binstall
uses: cargo-bins/[email protected]

- name: Install dependencies
run: |
cargo binstall --no-confirm trunk

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
targets: wasm32-unknown-unknown

- name: Setup Node.js environment
uses: actions/setup-node@main
with:
node-version: 24
cache: "yarn"
- name: Install npm dependencies
run: yarn install --frozen-lockfile

- name: Build project
run: trunk build --release
working-directory: crates/web

- name: Cache cargo registry and trunk assets
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
crates/web/dist
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ matrix.rust }}-
${{ runner.os }}-cargo-
test:
name: Test Suite
needs: compile-web
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [stable, beta]
steps:
- name: Checkout sources
uses: actions/checkout@v6

- name: Cache cargo registry and trunk assets
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
crates/web/dist
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ matrix.rust }}-
${{ runner.os }}-cargo-

- name: Run cargo test with all features
run: cargo test --all-features --verbose

- name: cargo install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: cargo hack
run: cargo hack --feature-powerset check

fmt:
name: Rustfmt
needs: compile-web
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v6

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt

- name: Run cargo fmt
run: cargo fmt --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
needs: compile-web
steps:
- name: Checkout sources
uses: actions/checkout@v6

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Cache cargo registry and trunk assets
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
crates/web/dist
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ matrix.rust }}-
${{ runner.os }}-cargo-

- name: Run cargo clippy
run: cargo clippy --all-targets --all-features

docs:
name: Documentation
runs-on: ubuntu-latest
needs: compile-web
steps:
- name: Checkout sources
uses: actions/checkout@v6

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly

- name: Cache cargo registry and trunk assets
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
crates/web/dist
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ matrix.rust }}-
${{ runner.os }}-cargo-

- name: Build documentation
run: cargo doc --all-features --no-deps --document-private-items
env:
RUSTDOCFLAGS: "-Dwarnings"

unused-deps:
name: Unused Dependencies
runs-on: ubuntu-latest
needs: compile-web
steps:
- name: Checkout sources
uses: actions/checkout@v6

- name: Install Rust nightly toolchain
uses: dtolnay/rust-toolchain@nightly

- name: Cache cargo registry and trunk assets
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
crates/web/dist
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ matrix.rust }}-
${{ runner.os }}-cargo-

- name: Install cargo-udeps
uses: taiki-e/install-action@cargo-udeps

- name: Check for unused dependencies
run: cargo +nightly udeps --all-targets --all-features
18 changes: 18 additions & 0 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Issue assignment

on:
issues:
types: [opened]

jobs:
auto-assign:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: "Auto-assign issue"
uses: pozil/auto-assign-issue@v2
with:
assignees: geofmureithi
numOfAssignee: 1
allowSelfAssign: true
45 changes: 0 additions & 45 deletions .github/workflows/nodejs.yml

This file was deleted.

Loading
Loading