Skip to content

feat: fetch with submodules and lfs #617

feat: fetch with submodules and lfs

feat: fetch with submodules and lfs #617

Workflow file for this run

name: Rust
on:
push:
paths-ignore:
- '.github/!(workflows)/**'
- 'solutions/typescript/**'
- 'solutions/python/**'
- 'Pipfile'
- 'Pipfile.lock'
- 'package.json'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- '*.json'
- '**/*.js'
- '**/*.cjs'
- '**/*.ts'
- '**/*.md'
pull_request:
paths-ignore:
- '.github/!(workflows)/**'
- 'solutions/typescript/**'
- 'solutions/python/**'
- 'Pipfile'
- 'Pipfile.lock'
- 'package.json'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- '*.json'
- '**/*.js'
- '**/*.cjs'
- '**/*.ts'
- '**/*.md'
jobs:
check:
name: Check
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
rust:
- stable
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Cache
id: cache-target
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Cargo Check
uses: actions-rs/cargo@v1
with:
command: check
test:
name: Test Suite
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
rust:
- stable
- nightly
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Cache
id: cache-target
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
fmt:
name: Rustfmt
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
strategy:
matrix:
rust:
- stable
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Cache
id: cache-target
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: |
--check
clippy:
name: Clippy
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
strategy:
matrix:
rust:
- stable
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Cache
id: cache-target
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Ensure Clippy
run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: |
-- -D warnings
audit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install Cargo Audit
run: cargo install cargo-audit
- name: Cargo Check
run: cargo audit