Skip to content

Merge pull request #1635 from getsops/dependabot/go_modules/go-31f56a… #32

Merge pull request #1635 from getsops/dependabot/go_modules/go-31f56a…

Merge pull request #1635 from getsops/dependabot/go_modules/go-31f56a… #32

Workflow file for this run

name: Linters
on:
push:
branches:
- main
pull_request:
branches:
- main
# Only run when Rust version or linted files change
paths:
- 'rust-toolchain.toml'
- 'functional-tests/**/*.rs'
permissions:
contents: read
jobs:
lint:
name: Lint Rust source files
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
# Rustup will detect toolchain version and profile from rust-toolchain.toml
# It will download and install the toolchain and components automatically
# and make them available for subsequent commands
- name: Install Rust toolchain and additional components
run: rustup component add rustfmt
- name: Show Rust version
run: cargo --version
- name: Run Formatting Check
run: cargo fmt --check
working-directory: ./functional-tests