2019-11-01 05:53:54 +11:00
|
|
|
on: [push, pull_request]
|
|
|
|
name: CI
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
name: Lint
|
|
|
|
runs-on: macOS-latest
|
|
|
|
env:
|
2020-06-04 00:21:37 +10:00
|
|
|
DEVELOPER_DIR: /Applications/Xcode_11.5.app
|
2019-11-01 05:53:54 +11:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
|
|
|
|
# make sure all code has been formatted with rustfmt
|
|
|
|
- run: rustup component add rustfmt
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
|
|
|
args: --all -- --check --color always
|
|
|
|
|
|
|
|
# run clippy to verify we have no warnings
|
|
|
|
- run: rustup component add clippy
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: clippy
|
|
|
|
args: --all-features -- -D warnings
|
|
|
|
|
2020-02-06 01:06:36 +11:00
|
|
|
cargo-deny:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-05-11 17:51:50 +10:00
|
|
|
- uses: EmbarkStudios/cargo-deny-action@v1
|
2020-02-06 01:06:36 +11:00
|
|
|
|
2019-11-01 05:53:54 +11:00
|
|
|
test:
|
|
|
|
name: Test
|
|
|
|
runs-on: macOS-latest
|
|
|
|
env:
|
2020-06-04 00:21:37 +10:00
|
|
|
DEVELOPER_DIR: /Applications/Xcode_11.5.app
|
2019-11-01 05:53:54 +11:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|