feat: support .net8 #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: ghcr.io/sitkoru/actions-container | |
env: | |
PROJECT: "Sitko.FluentValidation" | |
TESTS_PROJECT: "Sitko.FluentValidation.Tests" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: dotnet build --configuration Release | |
- name: Add Github Actions logger | |
run: dotnet add tests/${{ env.TESTS_PROJECT}}/${{ env.TESTS_PROJECT}}.csproj package GitHubActionsTestLogger | |
shell: bash | |
- name: Run tests | |
run: dotnet test --logger GitHubActions --no-restore tests/${{ env.TESTS_PROJECT}}/${{ env.TESTS_PROJECT}}.csproj | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
needs: [ build ] | |
if: ${{ github.event_name == 'push' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Semantic Release | |
uses: sitkoru/semantic-release-action@v2 | |
env: | |
GH_TOKEN: ${{ secrets.BOT_TOKEN }} | |
GIT_AUTHOR_NAME: ${{ secrets.BOT_NAME }} | |
GIT_AUTHOR_EMAIL: ${{ secrets.BOT_EMAIL }} | |
GIT_COMMITTER_NAME: ${{ secrets.BOT_NAME }} | |
GIT_COMMITTER_EMAIL: ${{ secrets.BOT_EMAIL }} |