Skip to content

Commit

Permalink
chore(ci): added build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanle committed Dec 5, 2024
1 parent d38a050 commit 9c42abf
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Continuous Integration (CI)

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

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Cache cargo registry
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build project
run: cargo build --workspace --all-targets

- name: Run tests
run: cargo test --workspace --all-targets --all-features

0 comments on commit 9c42abf

Please sign in to comment.