mirror of
https://github.com/italicsjenga/ash-molten.git
synced 2024-12-23 21:31:30 +11:00
5b3e7f415b
* Add cargo-deny GitHub action * Remove Travis rule from mergify
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
on: [push, pull_request]
|
|
name: CI
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: macOS-latest
|
|
env:
|
|
DEVELOPER_DIR: /Applications/Xcode_11.1.app
|
|
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
|
|
|
|
cargo-deny:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: EmbarkStudios/cargo-deny-action@v0
|
|
|
|
test:
|
|
name: Test
|
|
runs-on: macOS-latest
|
|
env:
|
|
DEVELOPER_DIR: /Applications/Xcode_11.1.app
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|