ARCH-001 Phase 19: MessageTemplate controller/service consolidation (Admin/Store) #2534
Workflow file for this run
This file contains hidden or 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: ASP.NET Core CI | |
| on: | |
| push: | |
| branches: [ develop, main ] | |
| pull_request: | |
| branches: [ develop, main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.301 | |
| - name: Restore | |
| run: dotnet restore ./GrandNode.sln | |
| - name: Build with dotnet | |
| run: dotnet build ./GrandNode.sln --configuration Release | |
| - name: Start Docker for Mongodb | |
| run: docker run -d -p 27017:27017 mongo | |
| - name: Wait for MongoDB to be ready | |
| run: | | |
| for i in {1..30}; do | |
| nc -z localhost 27017 && echo "MongoDB is up" && exit 0 | |
| sleep 2 | |
| done | |
| echo "MongoDB did not become ready" && exit 1 | |
| - name: Unit tests | |
| run: ./.github/scripts/run-tests.sh Release |