name: Formatting + Clippy on: push: branches: - master paths-ignore: - 'utils/**' - 'doc/**' - 'docker/**' pull_request: branches: - master paths-ignore: - 'utils/**' - 'doc/**' - 'docker/**' jobs: build: name: Formatter and linter checks runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v1 - name: Set up Ruby 2.x uses: actions/setup-ruby@v1 with: ruby-version: 2.x - name: Set up Rust nightly run: | rustup self update rustup toolchain install nightly --component rustfmt clippy rust-src rustup default nightly cargo install cargo-xbuild - name: Run cargo fmt run: | ruby utils/fmt_all.rb --check - name: Run cargo clippy run: | ruby utils/clippy_all.rb