Skip to content

Commit 1ffe5b1

Browse files
szikszailjudit-nahajrakur
authored
Gherking update v2 (#51)
New implementation Co-authored-by: judit-nahaj <n.juditt@gmail.com> Co-authored-by: Balazs.Racz <balazs.racz94@gmail.com> Co-authored-by: Laszlo Szikszai <sziklaszlo@gmail.com>
1 parent 285d2be commit 1ffe5b1

File tree

123 files changed

+9832
-3916
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+9832
-3916
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

.eslintrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint"
6+
],
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
10+
"plugin:@typescript-eslint/recommended"
11+
],
12+
"rules": {
13+
"quotes": ["error", "double"],
14+
"@typescript-eslint/no-unused-vars": [
15+
"error",
16+
{
17+
"argsIgnorePattern": "^_"
18+
}
19+
],
20+
"@typescript-eslint/ban-ts-comment": 0
21+
}
22+
}

.github/workflows/beta-release.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
2+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
3+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
4+
5+
name: Beta Release
6+
7+
on:
8+
push:
9+
branches:
10+
- 'beta/**'
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: 16
20+
- run: npm ci
21+
- run: npm run build
22+
23+
publish-npm:
24+
needs: build
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Generate build number
28+
uses: einaregilsson/build-number@v3
29+
with:
30+
token: ${{secrets.github_token}}
31+
- name: Checkout
32+
uses: actions/checkout@v2
33+
- name: Setting up Node.js
34+
uses: actions/setup-node@v1
35+
with:
36+
node-version: 16
37+
registry-url: https://registry.npmjs.org/
38+
- name: Install
39+
run: npm ci
40+
- name: Build
41+
run: npm run buildUpdate
42+
- name: Release
43+
run: |
44+
cv=$(cat package.json | grep version | cut -d '"' -f 4)
45+
echo "$cv-beta.$BUILD_NUMBER"
46+
npm --no-git-tag-version version "$cv-beta.$BUILD_NUMBER"
47+
npm publish --tag beta .
48+
working-directory: ./dist
49+
env:
50+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: CI
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
- 'feature/**'
11+
- 'bugfix/**'
12+
- 'hotfix/**'
13+
workflow_dispatch:
14+
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
20+
strategy:
21+
matrix:
22+
node-version: [12.x, 14.x, 16.x]
23+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v1
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
- run: npm ci
32+
- run: npm run build

.github/workflows/docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Docs
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
build-and-deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
18+
with:
19+
persist-credentials: false
20+
21+
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
22+
run: |
23+
npm install
24+
npm run build
25+
26+
- name: Deploy
27+
uses: JamesIves/github-pages-deploy-action@3.7.1
28+
with:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
BRANCH: gh-pages # The branch the action should deploy to.
31+
FOLDER: docs # The folder the action should deploy.
32+
CLEAN: true # Automatically remove deleted files from the deploy branch

.github/workflows/pull-request.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Pull requests
5+
6+
on: [pull_request]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [12.x, 14.x, 16.x]
14+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- run: npm ci
23+
- run: npm run build
24+
- name: Monitor coverage
25+
if: ${{ always() }}
26+
uses: szikszail/coverage-monitor-action@main
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
clover_file: "coverage/clover.xml"
30+
threshold_alert: 60
31+
threshold_warning: 80
32+
threshold_metric: "branches"

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
3+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
4+
5+
name: Release
6+
7+
on:
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v1
17+
with:
18+
node-version: 16
19+
- run: npm ci
20+
- run: npm run build
21+
22+
publish-npm:
23+
needs: build
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: actions/setup-node@v1
28+
with:
29+
node-version: 16
30+
registry-url: https://registry.npmjs.org/
31+
- run: npm ci
32+
- run: npm run buildUpdate
33+
- run: npm publish ./dist
34+
env:
35+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
/node_modules
22
/coverage
3+
/reports
4+
/docs
5+
/tests/cli/data/destination/*.feature
6+
/tests/cli/data/output/*.feature
37
**/dist
48
.idea
59
*.log
610
*.*~
7-
package-lock.json
11+
*.tgz

.npmignore

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

.travis.yml

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

0 commit comments

Comments
 (0)