Skip to content

Merge pull request #19 from iggy-rs/fix-http-pollmessage-offset #230

Merge pull request #19 from iggy-rs/fix-http-pollmessage-offset

Merge pull request #19 from iggy-rs/fix-http-pollmessage-offset #230

Workflow file for this run

name: .NET
on:
pull_request:
branches: [ "master" ]
push:
branches: [ "master" ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
nuget:
runs-on: ubuntu-latest
if: (github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true) || github.event_name == 'push'
steps:
- uses: actions/checkout@v3
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Publish
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: chmod +x scripts/pack.sh && scripts/pack.sh
shell: bash