Skip to content

Commit

Permalink
Add unit test and build github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout Feys committed Sep 19, 2024
1 parent acdeb03 commit 49cdb97
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Rust Build

on:
push:
branches:
- main # Change this to your default branch if it's not 'main'
pull_request:
branches:
- main # Change this to your default branch if it's not 'main'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable # You can specify a version like '1.60.0' if needed
override: true

- name: Build
run: cargo build --verbose
26 changes: 26 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Rust Unit Tests

on:
push:
branches:
- main # Change this to your default branch if it's not 'main'
pull_request:
branches:
- main # Change this to your default branch if it's not 'main'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable # You can specify a version like '1.60.0' or 'nightly'
override: true

- name: Run tests
run: cargo test

0 comments on commit 49cdb97

Please sign in to comment.