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
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

55 changes: 0 additions & 55 deletions .eslintrc.json

This file was deleted.

39 changes: 25 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,54 @@ permissions:

on:
pull_request:
branches:
- '*'
paths-ignore:
- '**/*.md'
push:
branches:
- 'main'
paths-ignore:
- '**/*.md'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
check:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20.x
node-version: 20
cache: npm
- run: npm ci
- run: npm run build
- run: npm run format-check
test-e2e:
- run: npm run lint
- run: npm run format

test-e2e:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
needs: build
needs: check
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- uses: ./
- run: allurectl --version
test-dist:
runs-on: ubuntu-latest
needs: build
timeout-minutes: 10
needs: check
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20.x
node-version: 20
cache: npm
- run: npm ci
- run: npm run build
Expand Down
12 changes: 12 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"arrowParens": "avoid",
"sortPackageJson": false,
"ignorePatterns": ["dist/", "lib/", "node_modules/"]
}
20 changes: 20 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "jest", "node"],
"categories": {
"correctness": "error",
"suspicious": "warn"
},
"ignorePatterns": ["dist/", "lib/", "node_modules/", "jest.config.js"],
"rules": {
"no-unused-vars": "off",
"eslint/no-unused-vars": "off",
"no-shadow": "off",
"eslint/no-shadow": "off",
"typescript/no-unused-vars": "error",
"typescript/no-duplicate-enum-values": "off",
"typescript-eslint/no-duplicate-enum-values": "off",
"typescript/no-explicit-any": "error",
"typescript/no-non-null-assertion": "warn"
}
}
3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

10 changes: 0 additions & 10 deletions .prettierrc.json

This file was deleted.

5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"oxc.enable.oxfmt": true,
"oxc.enable.oxlint": true
}
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ To upload the test results to Allure Testops please use following instructions i
### Use the action into your workflow and setup the action

```yaml
- uses: allure-framework/setup-allurectl@v1
with:
allure-endpoint: https://allure.testops.url
allure-token: ${{ secrets.ALLURE_TOKEN }}
allure-project-id: <PROJECT_ID>
- uses: allure-framework/setup-allurectl@v1
with:
allure-endpoint: https://allure.testops.url
allure-token: ${{ secrets.ALLURE_TOKEN }}
allure-project-id: <PROJECT_ID>
```

1. `allure.testops.url` is the URL of your Allure Testops instance without additional context paths, e.g. `https://allure.testops.url`
Expand All @@ -33,9 +33,9 @@ To upload the test results to Allure Testops please use following instructions i
### Use allurectl to upload the test results to Allure Testops

```yaml
- run: allurectl watch -- <test execution command>
env:
ALLURE_RESULTS: <path/to/test-results>
- run: allurectl watch -- <test execution command>
env:
ALLURE_RESULTS: <path/to/test-results>
```

where
Expand All @@ -46,39 +46,39 @@ where
### Complete example

```yaml
on: [push]
on: [push]

jobs:
tests:
runs-on: ubuntu-latest
steps:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- uses: allure-framework/setup-allurectl@v1
with:
with:
allure-endpoint: https://demo.Testops.cloud
allure-token: ${{ secret.ALLURE_TOKEN }}
allure-project-id: 1
- run: allurectl watch -- ./gradlew clean test
env:
env:
ALLURE_RESULTS: build/allure-results
```
```

### Managing the version of allurectl

If there a need to use a specific version of allurectl (e.g. if you need to test a pre-release version), you can use additional configuration parameter `allurectl-version`.

```yaml
- uses: allure-framework/setup-allurectl@v1
with:
allure-endpoint: https://ALURE_Testops_URL
allure-token: ${{ secrets.ALLURE_TOKEN }}
allure-project-id: <PRJ_ID>
allurectl-version: 2.15.4
- uses: allure-framework/setup-allurectl@v1
with:
allure-endpoint: https://ALURE_Testops_URL
allure-token: ${{ secrets.ALLURE_TOKEN }}
allure-project-id: <PRJ_ID>
allurectl-version: 2.15.4
```

The information on releases can be found in the releases section of [allurectl repository.](https://github.com/allure-framework/allurectl/releases)
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'play'
icon: 'play'
color: 'blue'
Loading
Loading