Skip to content

Commit

Permalink
added ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbox-irl committed Sep 29, 2024
1 parent a8a1577 commit 0e29244
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci
on:
pull_request:
push:
branches:
- main

jobs:
rustfmt:
name: Check rustfmt
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v2
- run: cargo fmt --all -- --check

test:
name: Run linter
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
env:
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
steps:
- name: Checkout
uses: actions/checkout@v4

- name: clippy
run: cargo clippy

- name: test
run: cargo test
5 changes: 0 additions & 5 deletions examples/README.md

This file was deleted.

0 comments on commit 0e29244

Please sign in to comment.