Skip to content

add github workflow github-actions-tests.yml; #1

add github workflow github-actions-tests.yml;

add github workflow github-actions-tests.yml; #1

name: "Tests"
on:
push:
branches:
- main
env:
PROJECT_PATH: 'src'
jobs:
test:
name: 'Run Test'
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '6.x.x' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore packages
run: dotnet restore ${{ env.PROJECT_PATH }}
- name: Build project
run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release
- name: Pack project
run: dotnet test