add linting step #10
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: Dotnet Build, Test | |
on: | |
push: | |
jobs: | |
build-test-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Xero-NetStandard repo | |
uses: actions/checkout@v4 | |
with: | |
repository: XeroAPI/Xero-NetStandard | |
path: Xero-NetStandard | |
- name: Set up .NET environment | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '3.1' | |
- name: Build post generation | |
run: dotnet build | |
working-directory: Xero-NetStandard | |
- name: Validate Lint | |
run: dotnet format --verify-no-changes | |
working-directory: Xero-NetStandard | |
- name: Run Test | |
run: dotnet test | |
working-directory: Xero-NetStandard |