Debian Codegraph @

debian/rust-vendor/futures-timer/.github/workflows/ci.yml

raw
1 name: CI
2 on: [push, pull_request]
3
4 # env:
5 # RUSTFLAGS: -Dwarnings
6
7 jobs:
8 test:
9 name: Test
10 runs-on: ubuntu-latest
11 strategy:
12 matrix:
13 rust:
14 - stable
15 steps:
16 - uses: actions/checkout@master
17 - name: Install Rust
18 run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
19 - name: cargo test
20 run: cargo test
21 - name: cargo doc
22 run: cargo doc --no-deps
23
24 style:
25 name: Style
26 runs-on: ubuntu-latest
27 strategy:
28 fail-fast: false
29 matrix:
30 component:
31 - rustfmt
32 steps:
33 - uses: actions/checkout@master
34 - name: Install Rust
35 shell: bash
36 run: rustup update stable && rustup default stable
37 - name: Install component
38 shell: bash
39 run: rustup component add ${{ matrix.component }}
40 - name: cargo fmt
41 if: matrix.component == 'rustfmt'
42 run: cargo fmt -- --check
43
44 publish_docs:
45 name: Publish Documentation
46 needs: [style, test]
47 runs-on: ubuntu-latest
48 steps:
49 - uses: actions/checkout@master
50 - name: Install Rust
51 run: rustup update stable && rustup default stable
52 - name: Build documentation
53 run: cargo doc --no-deps --all-features
54 - name: Publish documentation
55 run: |
56 cd target/doc
57 git init
58 git add .
59 git -c user.name='ci' -c user.email='ci' commit -m 'Deploy futures-timer API documentation'
60 git push -f -q https://git:${{ secrets.github_token }}@github.com/${{ github.repository }} HEAD:gh-pages
61 if: github.event_name == 'push' && github.event.ref == 'refs/heads/master' && github.repository == 'async-rs/futures-timer'
62
63 check_wasm:
64 name: Check Wasm
65 needs: [test]
66 runs-on: ubuntu-latest
67 steps:
68 - uses: actions/checkout@master
69 - name: Install Rust and add wasm target
70 run: rustup update stable && rustup target add wasm32-unknown-unknown
71 - name: cargo check
72 run: cargo check --target wasm32-unknown-unknown --features wasm-bindgen