Skip to content

Update to new nuget package #143

Update to new nuget package

Update to new nuget package #143

Workflow file for this run

name: ci
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ '**' ]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '3.1.x' ]
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v2 # TSCCR: no entry for repository "actions/setup-dotnet"
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
check-code-regeneration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Ensure the code has been properly regenerated with 'make regen'
run: |
make regen
readonly changed_files="$(git diff --stat ':!Vault.sln')"
if [[ "${changed_files}" != "" ]]; then
echo "Found differences after running 'make regen'"
echo "Please run 'make regen' & commit the changed files:"
echo "${changed_files}"
exit 1
fi
check-readme-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
fetch-depth: 0
persist-credentials: false
- name: Ensure the readme is formatted (make format-readme)
uses: creyD/prettier_action@v4.3 # TSCCR: no entry for repository "creyD/prettier_action"
with:
dry: True
prettier_options: --write README.md