chore: crates.io publish metadata + CI matrix (fmt/clippy on linux, cargo test on linux+windows)
This commit is contained in:
parent
81d442b5b1
commit
8a9a384365
2 changed files with 40 additions and 0 deletions
34
.github/workflows/ci.yml
vendored
Normal file
34
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
core.autocrlf: input
|
||||
- run: cargo fmt --check
|
||||
- run: cargo clippy --all-targets -- -D warnings
|
||||
|
||||
test:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
# core.autocrlf=input keeps the working tree LF on every OS: the
|
||||
# span/byte-offset tests and the git rename assertions compare exact
|
||||
# fixture bytes.
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
core.autocrlf: input
|
||||
- run: cargo test --locked
|
||||
Loading…
Add table
Add a link
Reference in a new issue