1name: Rust 2 3on: [push, pull_request] 4 5jobs: 6 build: 7 8 runs-on: ubuntu-latest 9 10 steps: 11 - uses: actions/checkout@v1 12 13 - name: Install nightly Rust 14 run: | 15 rustup toolchain install nightly 16 rustup default nightly 17 18 - name: Check rustfmt 19 run: | 20 rustup component add rustfmt --toolchain stable 21 cargo +stable fmt --all -- --check 22 23 - name: Run tests 24 run: ./ci/script.sh 25