Skip to content

Commit

Permalink
Add CI that runs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iñaki llorens authored and iñaki llorens committed Aug 27, 2024
1 parent 3a026a1 commit d6023ac
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: tests

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest

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

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Run tests
run: cargo test

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

- name: Format code
run: cargo fmt -- --check

0 comments on commit d6023ac

Please sign in to comment.