chore: clean up all the stuff to make sure the initial_branch is read… #6
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: Build and Test | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
build_and_test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.0.x' # You can specify the version you need | |
- name: Restore Dependencies | |
run: dotnet restore CodeJoyRide.sln | |
- name: Build Solution | |
run: dotnet build CodeJoyRide.sln --configuration Release | |
- name: Run Tests | |
run: dotnet test CodeJoyRide.sln --configuration Release --no-restore --verbosity normal |