Removing use of deprecated methods from 'chrono' crate #25
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
paths-ignore: | |
- 'README.md' | |
pull_request: | |
branches: [ "main" ] | |
paths-ignore: | |
- 'README.md' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
ci: | |
name: Pipeline | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check-out | |
uses: actions/checkout@v3 | |
- name: Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
override: true | |
components: rustfmt, clippy | |
- name: Cargo check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
- name: Cargo fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: "Cargo clippy (features: +default)" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: -- -D warnings | |
- name: "Cargo clippy (features: -default +ts_chrono)" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --no-default-features --features ts_chrono -- -D warnings | |
- name: "Cargo clippy (features: -default +ts_time)" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --no-default-features --features ts_chrono -- -D warnings | |
- name: "Cargo test (features: +default)" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
- name: "Cargo test (features: -default +ts_chrono)" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --no-default-features --features ts_chrono | |
- name: "Cargo test (features: -default +ts_time)" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --no-default-features --features ts_time |