a35bba17c0
Frontend CI / build-and-check (push) Failing after 5m14s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 11s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 14s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 22s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 9s
34 lines
705 B
YAML
34 lines
705 B
YAML
name: Backend CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main", "dev" ]
|
|
paths:
|
|
- 'backend/**'
|
|
pull_request:
|
|
branches: [ "main", "dev" ]
|
|
paths:
|
|
- 'backend/**'
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: '10.0.x'
|
|
|
|
- name: Restore dependencies
|
|
run: dotnet restore backend/UniVerse.sln
|
|
|
|
- name: Build
|
|
run: dotnet build backend/UniVerse.sln --no-restore --configuration Release
|
|
|
|
- name: Test
|
|
run: dotnet test backend/UniVerse.sln --no-build --configuration Release --verbosity normal
|