Skip to content

Update API to latest (1.28) #58

Update API to latest (1.28)

Update API to latest (1.28) #58

Workflow file for this run

name: CI
on: [pull_request]
jobs:
test:
name: Test ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.58.0
override: true
- uses: Swatinem/[email protected]
- name: test --all-features
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --verbose
- name: test --no-default-features
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --verbose
- name: Check for uncommitted changes
shell: bash
run: |
if [[ ! -z $(git status --short) ]]; then
echo "Found uncommitted changes after running tests." && exit 1
fi
fmt:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.58.0
override: true
- run: rustup component add rustfmt
- uses: Swatinem/[email protected]
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check