Skip to content

Commit 854a783

Browse files
authored
correct readme
1 parent f1d9116 commit 854a783

1 file changed

Lines changed: 38 additions & 2 deletions

File tree

README.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,38 @@
1-
// TODO:
2-
1
1+
# Allure Action
2+
3+
> GitHub action to render Allure Report summary right in your Pull Requests
4+
5+
<img width="617" alt="image" src="https://github.com/user-attachments/assets/3a3c13a8-feb6-47ce-9657-2ce3278440c4" />
6+
7+
## Usage
8+
9+
Add the action to your workflow right after your tests, which produce Allure Report:
10+
11+
```yaml
12+
- name: Run Allure Action
13+
uses: ./
14+
with:
15+
# Github Token that uses for posting the comments in Pull Requests
16+
github-token: ${{ secrets.GITHUB_TOKEN }}
17+
```
18+
19+
## Configuration
20+
21+
The action utilizes `allurerc.js` configuration file and use `output` field as a path, where it should search for the generated reports.
22+
23+
### Remote reports
24+
25+
If you want to be able to open remote reports automatically hosted on Allure Service, provide `allureService` configuration to the `allurerc.js` configuration file:
26+
27+
```diff
28+
import { defineConfig } from "allure";
29+
import { env } from "node:process";
30+
31+
export default defineConfig({
32+
output: "allure-report",
33+
+ allureService: {
34+
+ // don't forget to provide the access token to your pipeline
35+
+ accessToken: env.ALLURE_SERVICE_ACCESS_TOKEN,
36+
+ }
37+
});
38+
```

0 commit comments

Comments
 (0)