Skip to content

Commit

Permalink
added CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
AntyaDev committed Jan 11, 2024
1 parent 498f82a commit a0c0ca7
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: build

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.x.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: deploy

on:
push:
branches: [ "main" ]

jobs:
deploy:
environment: PROD
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.x.x
- name: Restore dependencies
run: dotnet restore
- name: Pack
run: dotnet pack src/NBomber.WebSockets/NBomber.WebSockets.csproj -c Release -o artifacts --include-source
- name: Publish
run: dotnet nuget push artifacts/**.nupkg -s https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }}
2 changes: 1 addition & 1 deletion src/NBomber.WebSockets/NBomber.WebSockets.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageIcon>nbomber_icon.png</PackageIcon>
<RepositoryUrl>https://github.com/PragmaticFlow/NBomber.WebSockets</RepositoryUrl>
<PackageTags>websockets, load-testing, performance-testing, integration-testing, fsharp</PackageTags>
<PackageTags>websockets, load-testing, performance-testing, integration-testing</PackageTags>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<Description>NBomber plugin for defining WebSockets scenarios</Description>
<Title>NBomber.WebSockets</Title>
Expand Down

0 comments on commit a0c0ca7

Please sign in to comment.