Skip to content

Update lib.rs

Update lib.rs #9

Workflow file for this run

name: Test
on:
push:
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.github/**'
- '.gitignore'
branches: [ "main" ]
pull_request:
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.github/**'
- '.gitignore'
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run doctests
run: cargo test --doc --verbose
- uses: actions/checkout@v1
- name: Check for possible code optimization
run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}