Squash merge to intermediate branch to pick for 1.20.2 #2605
Workflow file for this run
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: 'Code formatting' | |
on: | |
pull_request: | |
workflow_dispatch: | |
env: | |
BUILD_CONFIG: release | |
DOTNET_VERSION: 7 | |
DOTNET_INSTALL_DIR: '~/.dotnet' | |
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: "1" | |
TERM: xterm | |
jobs: | |
spacing-check: | |
name: Check whitespaces | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Cache dotnet | |
id: cache-dotnet | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.DOTNET_INSTALL_DIR }} | |
key: ${{ runner.os }}-dotnet-${{ env.DOTNET_VERSION }} | |
restore-keys: ${{ runner.os }}-dotnet-${{ env.DOTNET_VERSION }} | |
- name: Set up .NET | |
if: ${{ steps.cache-dotnet.outputs.cache-hit != 'true' }} | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Format | |
run: | | |
dotnet format whitespace src/Nethermind/ --folder --verify-no-changes |