Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikvanantwerpen committed Dec 5, 2023
1 parent a9bdd3f commit 7816104
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @aneubeck @gorzell
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
merge_group:
push:

permissions:
contents: read
packages: read

# In the event that there is a new push to the ref, cancel any running jobs because there are now obsolete, and wasting
# resources.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build & Test
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Install Rust environment
uses: hecrj/setup-rust-action@v1
with:
rust-version: stable

- name: Cache Rust dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/
target/
key: ${{ runner.OS }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.OS }}-cargo-
- name: Check formatting
run: cargo fmt --all -- --check

- name: Run test (default features)
run: cargo test

- name: Run test (all features)
run: cargo test --all-features

0 comments on commit 7816104

Please sign in to comment.