Add Github templates and formatter #16
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
env: | |
GIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} | |
name: "C#/.NET Unit Tests" | |
on: | |
pull_request: | |
types: [labeled, opened, synchronize, reopened, auto_merge_enabled] | |
push: | |
branches: | |
- main | |
jobs: | |
run-tests: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ env.GIT_SHA }} | |
- name: Setup .NET | |
uses: ./.github/actions/setup-dotnet | |
- name: Check Formatting | |
uses: ./.github/actions/check-formatting | |
- name: Run Tests | |
run: dotnet test --no-restore --verbosity normal | |
working-directory: ./Aptos.Tests | |
shell: bash |