1name: CI
2on:
3  pull_request:
4  push:
5    branches: ["master", "staging", "trying"]
6
7env:
8  CARGO_INCREMENTAL: 0
9  CARGO_NET_RETRY: 10
10  CI: 1
11  RUST_BACKTRACE: short
12  RUSTFLAGS: -D warnings
13  RUSTUP_MAX_RETRIES: 10
14
15jobs:
16  test:
17    name: Rust
18    runs-on: ubuntu-latest
19
20    steps:
21    - uses: actions/checkout@v2
22      with:
23        fetch-depth: 0 # fetch tags for publish
24
25    - run: cargo run -p xtask -- ci
26      env:
27        CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
28