-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (46 loc) · 1.32 KB
/
Copy pathCI.yml
File metadata and controls
47 lines (46 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build and Test
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
env:
CONFIGURATION: Release
DOTNET_VERSION: 11.0.x
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: 26.x
- name: Install Package libmsquic
run: |
sudo apt update
sudo apt install -y libmsquic
shell: sh
- name: Build
run: dotnet build CHttpTools.slnx -c ${{ env.CONFIGURATION }}
- name: Test
run: |
dotnet test ./tests/CHttp.Tests --no-build -c ${{ env.CONFIGURATION }}
dotnet test ./tests/CHttpExecutor.Tests --no-build -c ${{ env.CONFIGURATION }}
dotnet test ./tests/TestWebApplication.Tests --no-build -c ${{ env.CONFIGURATION }}
dotnet test ./tests/CHttp.Api.Tests --no-build -c ${{ env.CONFIGURATION }}
dotnet test ./tests/CHttpServer.Tests --no-build -c ${{ env.CONFIGURATION }}
- name: Publish VSCE
run: |
pushd ./src/VSCodeExt/
npm install
npm run vsce-deploy-win-x64
npm run vsce-deploy-linux-x64
popd