Skip to content

Commit dad6434

Browse files
authored
chore(Internal): 🔖 new release (#600)
2 parents bb22f2a + 0575140 commit dad6434

Some content is hidden

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

69 files changed

+14974
-21030
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
*.svg
77
website/build
88
*.json
9+
build/

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ body:
2121
attributes:
2222
label: Issue Version
2323
description: 🔢 What version of the framework is this bug related to?
24-
placeholder: v0.15.0
24+
placeholder: v0.16.0
2525
validations:
2626
required: true
2727

.github/SECURITY.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
We currently support only the following version of Boyka-Framework:
6+
7+
| Version | Supported |
8+
| ------- | ------------------ |
9+
| 0.x.x | :white_check_mark: |
10+
11+
## Reporting a Vulnerability
12+
13+
You can raise an issue on the [issue board](https://github.com/BoykaFramework/boyka-framework/issues/new/choose) by selecting the `Report a security vulnerability`.

.github/workflows/_create-pr.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ on:
1515
type: string
1616
description: PR Title
1717
required: true
18-
is-feature:
19-
type: boolean
20-
description: Is this PR from a feature branch
21-
default: false
2218
secrets:
2319
token:
2420
required: true
@@ -55,7 +51,7 @@ jobs:
5551
run: echo "Output of pull request already exists ${{ steps.pr-exists.outputs.is-pr-already-created }}"
5652

5753
- name: Create pull request
58-
if: ${{ steps.pr-exists.outputs.is-pr-already-created == 'false' && ! inputs.is-feature }}
54+
if: ${{ steps.pr-exists.outputs.is-pr-already-created == 'false' }}
5955
uses: repo-sync/pull-request@v2
6056
with:
6157
github_token: ${{ secrets.token }}
@@ -68,15 +64,3 @@ jobs:
6864
_This PR was generated via github actions workflow_
6965
7066
**Don't squash merge this PR**
71-
72-
- name: Create feature pull request
73-
if: ${{ steps.pr-exists.outputs.is-pr-already-created == 'false' && inputs.is-feature }}
74-
uses: repo-sync/pull-request@v2
75-
with:
76-
github_token: ${{ secrets.token }}
77-
source_branch: ${{ inputs.source-branch }}
78-
destination_branch: ${{ inputs.target-branch }}
79-
pr_reviewer: boyka-core
80-
pr_title: ${{ inputs.title }}
81-
pr_template: '.github/pull_request_template.md'
82-
pr_draft: true

.github/workflows/_release.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,18 @@ jobs:
4949
with:
5050
fetch-depth: 0
5151

52+
- uses: pnpm/action-setup@v2
53+
with:
54+
version: latest
55+
5256
- name: Setup Node v16
5357
uses: actions/setup-node@v3
5458
with:
5559
node-version: ${{ inputs.node-version }}
56-
cache: 'yarn'
60+
cache: 'pnpm'
5761

5862
- name: Install dependencies
59-
run: yarn install
63+
run: pnpm i
6064

6165
- name: Get the previous version
6266
id: old_version
@@ -72,11 +76,11 @@ jobs:
7276
7377
- name: Update pre-release version
7478
if: ${{ inputs.pre-release }}
75-
run: yarn prerelease
79+
run: pnpm prerelease
7680

7781
- name: Update release version
7882
if: ${{ ! inputs.pre-release }}
79-
run: yarn release
83+
run: pnpm release
8084

8185
- name: Get the new version
8286
id: version
@@ -87,7 +91,7 @@ jobs:
8791
- name: Generate Change log
8892
if: ${{ steps.version.outputs.version != null }}
8993
run: |
90-
yarn changelog --from v${{ steps.old_version.outputs.previous_version }} --next-version v${{ steps.version.outputs.version }} > CHANGELOG.md
94+
pnpm changelog --from v${{ steps.old_version.outputs.previous_version }} --next-version v${{ steps.version.outputs.version }} > CHANGELOG.md
9195
9296
- name: Upload updated version related files to artifacts
9397
uses: actions/upload-artifact@v3
@@ -237,15 +241,6 @@ jobs:
237241
- name: Push updated version files
238242
uses: EndBug/add-and-commit@v9
239243
with:
240-
add: "[
241-
'core-java/pom.xml',
242-
'lerna.json',
243-
'CHANGELOG.md',
244-
'website/package.json',
245-
'README.md',
246-
'package.json',
247-
'website/docs/framework-docs/getting-started/usage.md',
248-
]"
249244
message: |
250245
chore(Internal): :bookmark: released v${{ needs.prepare.outputs.new-version }} to maven central
251246
push: true

.github/workflows/_test-core-java.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
runs-on:
77
type: string
88
description: On which runner to run on
9-
default: ubuntu
9+
default: ubuntu-latest
1010
java-version:
1111
type: string
1212
description: Version of Java to run on
@@ -51,7 +51,7 @@ on:
5151

5252
jobs:
5353
test:
54-
runs-on: ${{ inputs.runs-on }}-latest
54+
runs-on: ${{ inputs.runs-on }}
5555
steps:
5656
- name: Check out Git repository
5757
uses: actions/checkout@v3
@@ -67,12 +67,12 @@ jobs:
6767
- name: Install Appium 2.0
6868
if: ${{ inputs.run-appium }}
6969
run: |
70-
npm install -g appium@next
70+
npm install -g appium
7171
appium driver install uiautomator2
7272
appium driver install xcuitest
7373
74-
- name: Start Selenium Grid
75-
if: ${{ inputs.run-grid }}
74+
- name: Start Selenium Grid for Web
75+
if: ${{ inputs.run-grid && ! inputs.run-appium }}
7676
run: |
7777
docker-compose -f core-java/compose/docker-compose.yml up -d
7878
@@ -89,10 +89,10 @@ jobs:
8989
if: ${{ inputs.run-android }}
9090
uses: reactivecircus/android-emulator-runner@v2
9191
with:
92-
avd-name: Pixel_6_Pro
92+
avd-name: Pixel_7_Pro
9393
api-level: 30
9494
target: ${{ inputs.emulator-target }}
95-
arch: x86
95+
arch: x86_64
9696
profile: Nexus 6
9797
force-avd-creation: false
9898
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
@@ -108,8 +108,8 @@ jobs:
108108
LT_KEY: ${{ secrets.cloudKey }}
109109
run: mvn verify org.jacoco:jacoco-maven-plugin:prepare-agent -f core-java/pom.xml -Dsuite-name=${{ inputs.suite-name }} -P${{ inputs.profile-name }}
110110

111-
- name: Stop Selenium Grid
112-
if: ${{ inputs.run-grid && always() }}
111+
- name: Stop Selenium Grid for Web
112+
if: ${{ inputs.run-grid && ! inputs.run-appium && always() }}
113113
run: |
114114
docker-compose -f core-java/compose/docker-compose.yml down --remove-orphans
115115
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Create pull request from main to develop
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
create-main-to-develop-pr:
10+
uses: ./.github/workflows/_create-pr.yml
11+
with:
12+
source-branch: main
13+
target-branch: develop
14+
title: '👾 Merge `main` to `develop`'
15+
secrets:
16+
token: ${{ secrets.PUSH_TOKEN }}

.github/workflows/deploy-site.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,43 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v3
29+
30+
- uses: pnpm/action-setup@v2
31+
with:
32+
version: latest
33+
2934
- uses: actions/setup-node@v3
3035
with:
3136
node-version: '18'
32-
cache: 'yarn'
37+
cache: 'pnpm'
38+
3339
- name: Install dependencies
34-
run: yarn
40+
run: pnpm i
41+
3542
- name: Build site
36-
run: yarn build:site
43+
run: pnpm build:site
3744

3845
gh-release:
3946
if: ${{ github.event_name == 'push' }}
4047
runs-on: ubuntu-latest
4148
steps:
4249
- uses: actions/checkout@v3
50+
51+
- uses: pnpm/action-setup@v2
52+
with:
53+
version: latest
54+
4355
- uses: actions/setup-node@v3
4456
with:
4557
node-version: '18'
46-
cache: 'yarn'
58+
cache: 'pnpm'
59+
4760
- name: Install dependencies
48-
run: yarn
61+
run: pnpm i
62+
4963
- name: Build site
50-
run: yarn build:site
64+
run: pnpm build:site
65+
5166
- name: Deploy to GitHub Pages
5267
uses: peaceiris/actions-gh-pages@v3
5368
with:

.github/workflows/test-core.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
uses: ./.github/workflows/_test-core-java.yml
6565
with:
6666
suite-name: testng-web-local
67-
runs-on: macos
67+
runs-on: macos-latest
6868

6969
test-web-bs:
7070
needs:
@@ -99,18 +99,19 @@ jobs:
9999
- build
100100
uses: ./.github/workflows/_test-core-java.yml
101101
with:
102-
runs-on: macos
102+
runs-on: macos-latest
103103
suite-name: testng-mobile-local
104104
run-appium: true
105105
run-ios: true
106106
run-android: true
107+
emulator-target: playstore
107108

108109
test-mobile-web:
109110
needs:
110111
- build
111112
uses: ./.github/workflows/_test-core-java.yml
112113
with:
113-
runs-on: macos
114+
runs-on: macos-latest
114115
suite-name: testng-mobile-web
115116
run-appium: true
116117
run-ios: true

.gitignore

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55
*.iml
66
.DS_Store
77

8-
.pnp.*
9-
**/.yarn/*
10-
!.yarn/patches
11-
!.yarn/plugins
12-
!.yarn/releases
13-
!**/.yarn/sdks
14-
/node_modules
8+
node_modules/
159

1610
.changelog
1711
.docusaurus/

0 commit comments

Comments
 (0)