Skip to content

chore: add GitHub actions and remove Package wapproj #6

chore: add GitHub actions and remove Package wapproj

chore: add GitHub actions and remove Package wapproj #6

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
fmt:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
cache: true
cache-dependency-path: '**/packages.lock.json'
- name: dotnet restore
run: dotnet restore --locked-mode
- name: dotnet format
run: dotnet format --verify-no-changes --no-restore
test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
cache: true
cache-dependency-path: '**/packages.lock.json'
- name: dotnet restore
run: dotnet restore --locked-mode
- name: dotnet test
run: dotnet test --no-restore
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
cache: true
cache-dependency-path: '**/packages.lock.json'
- name: dotnet restore
run: dotnet restore --locked-mode
- name: dotnet publish
run: dotnet publish --no-restore --configuration Release --output .\publish
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: publish
path: .\publish\