name: Build and test
on:
push:
branches:
paths-ignore:
- '**.md'
pull_request:
branches:
paths-ignore:
- '**.md'
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build
- name: Build with export feature
run: cargo build --features export
- name: Run tests
run: cargo test
- name: Run format check
run: cargo fmt --check