Skip to content

Commit 371b815

Browse files
committed
chore: update deps due to security, replace bundler, replace linter-formatter
1 parent 1a52b47 commit 371b815

20 files changed

Lines changed: 28608 additions & 39631 deletions

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/build.yaml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,54 @@ permissions:
55

66
on:
77
pull_request:
8-
branches:
9-
- '*'
8+
paths-ignore:
9+
- '**/*.md'
1010
push:
1111
branches:
1212
- 'main'
13+
paths-ignore:
14+
- '**/*.md'
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1319

1420
jobs:
15-
build:
21+
check:
1622
runs-on: ubuntu-latest
23+
timeout-minutes: 15
1724
steps:
18-
- uses: actions/checkout@v3
19-
- uses: actions/setup-node@v4
25+
- uses: actions/checkout@v6
26+
- uses: actions/setup-node@v6
2027
with:
21-
node-version: 20.x
28+
node-version: 20
2229
cache: npm
2330
- run: npm ci
2431
- run: npm run build
25-
- run: npm run format-check
26-
test-e2e:
32+
- run: npm run lint
33+
- run: npm run format
34+
35+
test-e2e:
2736
runs-on: ${{ matrix.os }}
37+
timeout-minutes: 10
2838
strategy:
2939
fail-fast: false
3040
matrix:
3141
os: [ubuntu-latest, windows-latest, macos-latest]
32-
needs: build
42+
needs: check
3343
steps:
34-
- uses: actions/checkout@v3
44+
- uses: actions/checkout@v6
3545
- uses: ./
3646
- run: allurectl --version
3747
test-dist:
3848
runs-on: ubuntu-latest
39-
needs: build
49+
timeout-minutes: 10
50+
needs: check
4051
steps:
41-
- uses: actions/checkout@v3
42-
- uses: actions/setup-node@v4
52+
- uses: actions/checkout@v6
53+
- uses: actions/setup-node@v6
4354
with:
44-
node-version: 20.x
55+
node-version: 20
4556
cache: npm
4657
- run: npm ci
4758
- run: npm run build

.oxfmtrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": false,
6+
"singleQuote": true,
7+
"trailingComma": "none",
8+
"bracketSpacing": true,
9+
"arrowParens": "avoid",
10+
"sortPackageJson": false,
11+
"ignorePatterns": ["dist/", "lib/", "node_modules/"]
12+
}

.oxlintrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "jest", "node"],
4+
"categories": {
5+
"correctness": "error",
6+
"suspicious": "warn"
7+
},
8+
"ignorePatterns": ["dist/", "lib/", "node_modules/", "jest.config.js"],
9+
"rules": {
10+
"no-unused-vars": "off",
11+
"eslint/no-unused-vars": "off",
12+
"no-shadow": "off",
13+
"eslint/no-shadow": "off",
14+
"typescript/no-unused-vars": "error",
15+
"typescript/no-duplicate-enum-values": "off",
16+
"typescript-eslint/no-duplicate-enum-values": "off",
17+
"typescript/no-explicit-any": "error",
18+
"typescript/no-non-null-assertion": "warn"
19+
}
20+
}

.prettierignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.prettierrc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"oxc.enable.oxfmt": true,
4+
"oxc.enable.oxlint": true
5+
}

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ To upload the test results to Allure Testops please use following instructions i
1919
### Use the action into your workflow and setup the action
2020

2121
```yaml
22-
- uses: allure-framework/setup-allurectl@v1
23-
with:
24-
allure-endpoint: https://allure.testops.url
25-
allure-token: ${{ secrets.ALLURE_TOKEN }}
26-
allure-project-id: <PROJECT_ID>
22+
- uses: allure-framework/setup-allurectl@v1
23+
with:
24+
allure-endpoint: https://allure.testops.url
25+
allure-token: ${{ secrets.ALLURE_TOKEN }}
26+
allure-project-id: <PROJECT_ID>
2727
```
2828
2929
1. `allure.testops.url` is the URL of your Allure Testops instance without additional context paths, e.g. `https://allure.testops.url`
@@ -33,9 +33,9 @@ To upload the test results to Allure Testops please use following instructions i
3333
### Use allurectl to upload the test results to Allure Testops
3434

3535
```yaml
36-
- run: allurectl watch -- <test execution command>
37-
env:
38-
ALLURE_RESULTS: <path/to/test-results>
36+
- run: allurectl watch -- <test execution command>
37+
env:
38+
ALLURE_RESULTS: <path/to/test-results>
3939
```
4040

4141
where
@@ -46,39 +46,39 @@ where
4646
### Complete example
4747

4848
```yaml
49-
on: [push]
49+
on: [push]
5050
51-
jobs:
52-
tests:
53-
runs-on: ubuntu-latest
54-
steps:
51+
jobs:
52+
tests:
53+
runs-on: ubuntu-latest
54+
steps:
5555
- uses: actions/checkout@v3
5656
- uses: actions/setup-java@v3
5757
with:
5858
distribution: 'zulu'
5959
java-version: '17'
6060
cache: 'gradle'
6161
- uses: allure-framework/setup-allurectl@v1
62-
with:
62+
with:
6363
allure-endpoint: https://demo.Testops.cloud
6464
allure-token: ${{ secret.ALLURE_TOKEN }}
6565
allure-project-id: 1
6666
- run: allurectl watch -- ./gradlew clean test
67-
env:
67+
env:
6868
ALLURE_RESULTS: build/allure-results
69-
```
69+
```
7070

7171
### Managing the version of allurectl
7272

7373
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`.
7474

7575
```yaml
76-
- uses: allure-framework/setup-allurectl@v1
77-
with:
78-
allure-endpoint: https://ALURE_Testops_URL
79-
allure-token: ${{ secrets.ALLURE_TOKEN }}
80-
allure-project-id: <PRJ_ID>
81-
allurectl-version: 2.15.4
76+
- uses: allure-framework/setup-allurectl@v1
77+
with:
78+
allure-endpoint: https://ALURE_Testops_URL
79+
allure-token: ${{ secrets.ALLURE_TOKEN }}
80+
allure-project-id: <PRJ_ID>
81+
allurectl-version: 2.15.4
8282
```
8383

8484
The information on releases can be found in the releases section of [allurectl repository.](https://github.com/allure-framework/allurectl/releases)

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ runs:
2323
using: 'node20'
2424
main: 'dist/index.js'
2525
branding:
26-
icon: 'play'
26+
icon: 'play'
2727
color: 'blue'

0 commit comments

Comments
 (0)