name: Dev testing pipeline run-name: ${{ gitea.actor }} is testing out Yuna 🚀 on: push: branches: - dev jobs: BuildAndTest: runs-on: ubuntu-latest steps: - name: List Base info 👓 run: | echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." echo "${{ gitea.workspace }} is a workspace folder" - name: Check out repo code 📝 uses: actions/checkout@v4 - name: Setup .NET 🛠️ uses: actions/setup-dotnet@v3 with: dotnet-version: "8.0.x" - name: Restore dependencies 🔪 run: dotnet restore - name: Build debug app ☢️ run: | dotnet build -c Debug --no-restore cp ${{gitea.workspace}}/Yuna.Website/Yuna.Website.Server/GlobalSettings.json ${{gitea.workspace}}/Yuna.Tests/bin/Debug/net8.0/globalSettings.json - name: Run unit tests 💊 run: dotnet test -c Debug --no-build