Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ on:
permissions:
pull-requests: write
checks: write
contents: read
contents: write

concurrency:
group: pages-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || 'main' }}
cancel-in-progress: true

jobs:
test:
Expand All @@ -21,6 +25,15 @@ jobs:
steps:
- uses: actions/checkout@v6

- name: Compute publish subpath
id: path
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "subdir=pr-${{ github.event.number }}" >> "$GITHUB_OUTPUT"
else
echo "subdir=" >> "$GITHUB_OUTPUT"
fi

- name: Enable Corepack
run: corepack enable

Expand All @@ -46,4 +59,15 @@ jobs:
uses: ./
with:
report-directory: "./out/allure-report"
remote-href: "https://allure-framework.github.io/allure-action/${{ steps.path.outputs.subdir }}"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy to GitHub Pages
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out/allure-report
publish_branch: gh-pages
destination_dir: ${{ steps.path.outputs.subdir }}
keep_files: true
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/b_-npm-1.3.4-da20da500a-b4dd7a01a1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/qs-npm-6.14.2-dc981e3564-682933a85b.zip
Binary file not shown.
Binary file removed .yarn/cache/rw-npm-1.3.3-2197930a8d-e90985d647.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/url-npm-0.11.4-706538be7c-e787d070f0.zip
Binary file not shown.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ Then, add the action to your workflow right after your tests, which produce Allu
uses: allure-framework/allure-report@v0
with:
# Path to the generated report directory
# By default, it's set to `./allure-report`
# Default: "./allure-report"
report-directory: "./"
# State path where the report is hosted on
# Useful when you publish your report to GitHub pages or any other hosting for static web-sites
# Default: ""
remote-href: "https://allure-framework.github.io/allure-action/"
# Github Token that uses for posting the comments in Pull Requests
github-token: ${{ secrets.GITHUB_TOKEN }}
```
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ inputs:
description: "The report directory to scan for files"
required: false
default: "./allure-report"
remote-href:
description: "Base URL where the published Allure report is hosted (e.g. GitHub Pages). Used to render `View` links in the summary table."
required: false
default: ""
github-token:
description: "GitHub token for creating comments"
required: false
Expand Down
13 changes: 12 additions & 1 deletion allurerc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const { ALLURE_SERVICE_ACCESS_TOKEN } = env;
const config = {
output: "./out/allure-report",
plugins: {
awesome: {
awesome1: {
import: "@allurereport/plugin-awesome",
options: {
singleFile: false,
reportLanguage: "en",
Expand All @@ -18,6 +19,16 @@ const config = {
publish: true,
},
},
awesome2: {
import: "@allurereport/plugin-awesome",
options: {
singleFile: true,
reportLanguage: "en",
reportName: "Allure Action (single mode)",
open: false,
publish: true,
},
},
log: {
options: {
groupBy: "none",
Expand Down
Loading
Loading