Skip to content

Commit

Permalink
Update Deps (#211)
Browse files Browse the repository at this point in the history
* Fix build

* Update CI

* Allow log section in config to be omitted

* Remove `real_main`

* Print error if failed to get schedules tweet url

* Update deps

* Patch clockwerk

* Fix deny

* Install rustfmt and clippy on CI

* Add cache to CI
  • Loading branch information
adumbidiot authored Apr 29, 2023
1 parent 7f990e7 commit 9d431f4
Show file tree
Hide file tree
Showing 11 changed files with 803 additions and 626 deletions.
76 changes: 48 additions & 28 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,50 +6,70 @@ name: CI
pull_request:
branches:
- master

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt, clippy
override: true
- name: check rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: '-- --check --color always'
- name: cargo fetch
uses: actions-rs/cargo@v1
- name: Checkout
uses: actions/checkout@v3

- name: Cache
uses: actions/cache@v3
with:
command: fetch
- name: cargo clippy
uses: actions-rs/cargo@v1
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-lint-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install Toolchain
uses: dtolnay/rust-toolchain@nightly
with:
command: clippy
args: '--tests -- -D warnings'
cargo-deny:
components: clippy, rustfmt

- name: Check Fmt
run: cargo fmt -- --check --color always

- name: Check Clippy
run: cargo clippy --tests -- -D warnings

deny:
name: Deny
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
- name: Checkout
uses: actions/checkout@v3

- name: Deny
uses: EmbarkStudios/cargo-deny-action@v1

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Latest Stable Rust
uses: actions-rs/toolchain@v1
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
profile: minimal
toolchain: stable
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-build-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install Toolchain
uses: dtolnay/rust-toolchain@nightly

- name: Build
run: cargo build --verbose

- name: Run tests
- name: Tests
run: cargo test --all --verbose
Loading

0 comments on commit 9d431f4

Please sign in to comment.