Attempt to fix SonarCloud #109
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: Linux Tests | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup dotnet tooling | |
uses: actions/setup-dotnet@master | |
with: | |
dotnet-version: '6.0.x' | |
- name: Restore dependencies | |
run: | |
cd src | |
dotnet restore | |
- name: Compile SpiceParser | |
run: | |
cd src | |
dotnet build --configuration Debug --no-restore | |
- name: Run Tests | |
run: | |
cd src | |
dotnet test |