Fetch clock later to avoid sync issues when the reserve is refreshed - do not bail when clock is behind #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: | |
- master | |
- 'release/**' | |
pull_request: | |
branches: | |
- master | |
- 'release/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
jobs: | |
rust_fmt_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install essential | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y pkg-config build-essential libudev-dev | |
- uses: dtolnay/rust-toolchain@1.73.0 | |
with: | |
components: clippy | |
- uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt | |
- name: Rust cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: "ts-tests" | |
- uses: actions-rs/cargo@v1 | |
name: Rust format | |
with: | |
toolchain: nightly | |
command: fmt | |
args: --all -- --check | |
- uses: actions-rs/clippy-check@v1 | |
name: Clippy | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all -- --deny warnings | |
- name: Cargo test | |
run: | | |
cargo test |