Pre-Summer Update #905
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: API | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: [ master, dev ] | |
pull_request: | |
branches: [ master, dev ] | |
jobs: | |
buildApiSolution: | |
name: Build API | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository & Submodules | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v2 | |
with: | |
version: "23.3" | |
- name: Generate Protobuf Files | |
run: | | |
cd protocols/ | |
bash ./proto_compile.sh | |
cd .. | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install API Dependencies | |
run: dotnet restore api/api.sln | |
- name: Build API Solution | |
run: dotnet build api/api.sln --configuration Release --no-restore | |
- name: Test API Solution | |
run: dotnet test api/api.sln --no-restore --verbosity normal | |
# - name: Install Module Dependencies | |
# run: dotnet restore modules/modules.sln | |
# - name: Build Module Solution | |
# run: dotnet build modules/modules.sln --configuration Release --no-restore | |
# - name: Test Module Solution | |
# run: dotnet test modules/modules.sln --no-restore --verbosity normal |