bevy/.github/workflows/ci.yml
2020-08-24 11:16:52 -07:00

52 lines
1.1 KiB
YAML

name: CI
on:
# NOTE: temporarily disabled because on-push currently uses up too many resources
# push:
# branches: [master]
schedule:
- cron: '0 21 * * *'
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt, clippy
- name: Install alsa
run: sudo apt-get install libasound2-dev
- name: Build
run: cargo check
- name: Check the format
run: cargo +nightly fmt --all -- --check
# type complexity must be ignored because we use huge templates for queries
- name: Run clippy
run: >
cargo +nightly clippy
--all-targets
--all-features
--
-D warnings
-A clippy::type_complexity
- name: Run tests
run: cargo test --workspace