Skip to content

Commit

Permalink
Apply whitespaces formatting rules to entire codebase and run dotnet-…
Browse files Browse the repository at this point in the history
…format in the build (dafny-lang#1389)

Co-authored-by: Remy Willems <>
  • Loading branch information
keyboardDrummer authored Aug 25, 2021
1 parent 2ca4677 commit b5ad10a
Show file tree
Hide file tree
Showing 85 changed files with 2,474 additions and 3,124 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,27 @@ on:
pull_request:
branches: [ master ]

env:
dotnet-version: 5.0.x # SDK Version for building Dafny; x will use the latest version of the 5.0 channel
jobs:
format:
runs-on: ubuntu-16.04
steps:
- name: Setup dotnet 5.0
uses: actions/[email protected]
with:
dotnet-version: ${{env.dotnet-version}}
- name: Checkout Dafny
uses: actions/checkout@v2
with:
path: dafny
- name: Restore tools
working-directory: dafny/Source
run: dotnet tool restore
- name: Check code style
working-directory: dafny/Source
run: dotnet tool run dotnet-format -w --check Dafny.sln

build:
runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -44,7 +64,7 @@ jobs:
- name: Setup dotnet 5.0
uses: actions/[email protected]
with:
dotnet-version: '5.0.x' # SDK Version for building Dafny; x will use the latest version of the 5.0 channel
dotnet-version: ${{env.dotnet-version}}
- name: C++ for ubuntu 16.04
if: matrix.os == 'ubuntu-16.04'
run: |
Expand All @@ -67,7 +87,6 @@ jobs:
- name: Checkout Dafny
uses: actions/checkout@v2
with:
submodules: recursive
path: dafny
- name: Create release
run: |
Expand Down
Loading

0 comments on commit b5ad10a

Please sign in to comment.