Add syntax for literal values. (#175) #250
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 ] | |
pull_request: | |
branches: [ main ] | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
env: | |
CARGO_TERM_COLORS: always | |
jobs: | |
minimum: | |
name: Minimum-supported Rust version | |
runs-on: ubuntu-latest | |
if: ${{ !github.event.pull_request.draft }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: "1.74.0" | |
profile: minimal | |
override: true | |
- name: Build | |
run: cargo build --all-features --verbose | |
- name: Run tests | |
run: cargo test --all-features --verbose --all-targets | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
if: ${{ !github.event.pull_request.draft }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: "1.74.0" | |
profile: minimal | |
override: true | |
- name: Build | |
run: cargo build --all-features --verbose | |
- name: Run tests | |
run: cargo test --all-features --verbose | |
rustfmt: | |
name: Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: "1.74.0" | |
profile: minimal | |
override: true | |
components: rustfmt | |
- name: Check formatting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
clippy: | |
name: Warnings | |
runs-on: ubuntu-latest | |
if: ${{ !github.event.pull_request.draft }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: "1.74.0" | |
profile: minimal | |
override: true | |
components: clippy | |
- name: Clippy Check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --all-features -- -D warnings |