update to latest .net, deps, actions, and api #5
This file contains hidden or 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: Allure Report | |
env: | |
SOLUTION_FILE: Allure.Examples.NUnit3.sln | |
BUILD_CONFIGURATION: Debug | |
on: | |
push: | |
branches-ignore: | |
- '!main' | |
jobs: | |
autotests: | |
name: Run tests and generate Allure Report | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Set up .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
8.0.x | |
- name: Restore NuGet packages | |
run: dotnet restore --packages .packages -p:ContinuousIntegrationBuild=true ${{ env.SOLUTION_FILE }} | |
- name: Build solution | |
run: dotnet build --no-restore --configuration ${{ env.BUILD_CONFIGURATION }} ${{ env.SOLUTION_FILE }} | |
- name: Test solution | |
run: dotnet test --no-build --configuration ${{ env.BUILD_CONFIGURATION }} ${{ env.SOLUTION_FILE }} | |
continue-on-error: true | |
- name: Get Allure history | |
uses: actions/checkout@v5 | |
if: always() | |
continue-on-error: true | |
with: | |
ref: gh-pages | |
path: gh-pages | |
- name: Generate Allure Report | |
uses: simple-elf/[email protected] | |
if: always() | |
with: | |
allure_results: allure-results | |
allure_history: allure-history | |
- name: Deploy report to GitHub Pages | |
if: always() | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: allure-history | |
publish_branch: gh-pages |