feat: add search to warranty card/request #96
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: .NET | |
on: | |
push: | |
branches: ["main", "controllers", "deploy"] | |
pull_request: | |
branches: ["main", "controllers", "deploy"] | |
jobs: | |
build: | |
env: | |
ASPNETCORE_ENVIRONMENT: "Development" | |
runs-on: self-hosted | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 # Check out the code from the repository | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 # Set up the .NET SDK | |
with: | |
dotnet-version: 8.0.x # Specify the exact .NET SDK version | |
- name: Restore dependencies | |
run: dotnet restore ./backend # Restore project dependencies | |
- name: Test | |
run: dotnet test --verbosity normal ./backend # Run tests | |
- name: Build | |
run: dotnet build --configuration Release ./backend --runtime linux-x64 # Build the project | |
- name: Deploy to server | |
run: | | |
cp -rf ./backend/bin/net8.0/linux-x64/* /home/datnt/datj-backend/ | |
shell: bash |