Skip to content

Commit 8159e57

Browse files
Introduces test history tracking for main branch (#73)
* feat: update CI workflow to include history branch and enhance Allure report configuration * fix: update checkout step for history branch to include token and remove fetch-depth * fix: ensure persist-credentials is set to false for history branch checkout * feat: add Allure test report badge to README
1 parent 21c4812 commit 8159e57

5 files changed

Lines changed: 27 additions & 4 deletions

File tree

.changeset/eleven-windows-sit.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"css-js-gen": patch
3+
---
4+
5+
Adds test report badge to readme

.github/workflows/ci-testing-main.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ jobs:
2626
persist-credentials: false
2727
token: ${{ steps.bot-token.outputs.token }}
2828

29+
- name: Checkout History branch
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
31+
with:
32+
ref: test-history
33+
path: test-history
34+
persist-credentials: false
35+
token: ${{ steps.bot-token.outputs.token }}
36+
2937
- name: Install Tools & Dependencies
3038
uses: withstudiocms/automations/.github/actions/install@f286863f2f7a414794b9a10ee6f1cadbb07f722f # main
3139

@@ -35,9 +43,16 @@ jobs:
3543
- name: Run tests and generate report
3644
run: pnpm ci:test
3745

38-
- name: Deploy
46+
- name: Deploy Allure Report to GitHub Pages
3947
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
4048
with:
4149
github_token: ${{ steps.bot-token.outputs.token }}
4250
publish_branch: test-report
43-
publish_dir: ./allure-report
51+
publish_dir: ./allure-report
52+
53+
- name: Upload History file
54+
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
55+
with:
56+
github_token: ${{ steps.bot-token.outputs.token }}
57+
publish_branch: test-history
58+
publish_dir: ./test-history

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ dist
88
allure-results
99
allure-report
1010
history.jsonl
11-
junit-report.xml
11+
junit-report.xml
12+
test-history

allurerc.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import { defineConfig } from "allure";
33
export default defineConfig({
44
name: "Allure Report",
55
output: "./allure-report",
6-
historyPath: "./history.jsonl",
6+
historyPath: "./test-history/history.jsonl",
77
appendHistory: true,
8+
historyLimit: 20,
89
qualityGate: {
910
rules: [
1011
{

packages/css-js-gen/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![NPM Version](https://img.shields.io/npm/v/css-js-gen)](https://npm.im/css-js-gen)
44
[![Formatted with Biome](https://img.shields.io/badge/Formatted_with-Biome-60a5fa?style=flat&logo=biome)](https://biomejs.dev/)
5+
[![Allure Test Report](https://img.shields.io/badge/Allure%20Test%20Report-blue?style=flat)](https://withstudiocms.github.io/expressive-code-twoslash/)
56

67
A TypeScript package that converts CSS object notation to CSS strings, providing a more maintainable alternative to template literals for generating CSS that needs to be inlined or exported as strings.
78

0 commit comments

Comments
 (0)