Skip to content

Bump Swatinem/rust-cache from 2.7.5 to 2.7.7 #273

Bump Swatinem/rust-cache from 2.7.5 to 2.7.7

Bump Swatinem/rust-cache from 2.7.5 to 2.7.7 #273

Workflow file for this run

name: Code
on:
push:
pull_request:
jobs:
lint:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/[email protected]
- name: Install stable toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
default: true
- name: Cache Rust Build
uses: Swatinem/[email protected]
- name: Check Formatting
uses: actions-rs/[email protected]
with:
command: fmt
args: --check
- name: Lint with Clippy
uses: actions-rs/[email protected]
with:
command: clippy
args: >
--no-deps
--all-targets
--all-features
--
--deny warnings
test:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/[email protected]
- name: Install stable toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
default: true
- name: Cache Rust Build
uses: Swatinem/[email protected]
- name: Test
uses: actions-rs/[email protected]
with:
command: test
args: >
--all-targets
--all-features