Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: CI

on:
workflow_dispatch:
pull_request:
push:
branches: ["master", "main"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true

jobs:
build-api:
name: "Build API"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Git checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: "10.0.*"
- name: Build .NET app
run: dotnet build TodoListAPI/TodoListAPI.slnx --warnaserror

lint-client:
name: "Lint Client"
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: TodoListClient
steps:
- name: Git checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install Node
uses: actions/setup-node@v7
with:
node-version: 22.x
cache: npm
cache-dependency-path: TodoListClient/package-lock.json
- name: Install Dependencies
run: npm ci
- name: Lint
run: npm run lint

test-client:
name: "Test Client"
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: TodoListClient
steps:
- name: Git checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install Node
uses: actions/setup-node@v7
with:
node-version: 22.x
cache: npm
cache-dependency-path: TodoListClient/package-lock.json
- name: Install Dependencies
run: npm ci
- name: Run Tests
run: npm test
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"ms-dotnettools.csdevkit",
"ms-dotnettools.csharp"
]
}
71 changes: 27 additions & 44 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,28 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/TodoListAPI/bin/Debug/netcoreapp2.0/TodoListAPI.dll",
"args": [],
"cwd": "${workspaceFolder}/TodoListAPI",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart",
"launchBrowser": {
"enabled": true,
"args": "${auto-detect-url}",
"windows": {
"command": "cmd.exe",
"args": "/C start ${auto-detect-url}"
},
"osx": {
"command": "open"
},
"linux": {
"command": "xdg-open"
}
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
"version": "0.2.0",
"configurations": [
{
"name": "TodoListAPI",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/TodoListAPI/bin/Debug/net10.0/TodoListAPI.dll",
"args": [],
"cwd": "${workspaceFolder}/TodoListAPI",
"stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
32 changes: 18 additions & 14 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/TodoListAPI/TodoListAPI.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/TodoListAPI/TodoListAPI.csproj"
],
"problemMatcher": "$msCompile",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Loading
Loading