chore: remove CI testing with HyperExecuted (LambdaTest)

This commit is contained in:
Jos de Jong 2024-12-11 08:42:14 +01:00
parent ea41b03bab
commit d8e4073a4d
4 changed files with 0 additions and 187 deletions

View File

@ -1,37 +0,0 @@
name: Hyperexecute
on:
workflow_dispatch:
inputs:
username:
required: true
description: LT Username
accessKey:
description: LT Access Key
required: true
sampleRepoLink:
description: Link to the HyperExecute sample repo
default: https://github.com/gauravchawhan/mathjs
required: true
jobs:
HyperExecute-Playwright:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [windows-latest]
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Starting CLI testing
shell: bash
run: |
echo "STEP 1 ) Downloading sample suite"
git clone https://github.com/gauravchawhan/mathjs
echo "STEP 2) Download CLI and setting environment variables"
cd mathjs
curl https://downloads.lambdatest.com/hyperexecute/windows/hyperexecute.exe -o hyperexecute.exe
export LT_USERNAME=${{ github.event.inputs.username }}
export LT_ACCESS_KEY=${{ github.event.inputs.accessKey }}
./hyperexecute --user $LT_USERNAME --key $LT_ACCESS_KEY --config hyperexecute.yaml

View File

@ -1,33 +0,0 @@
name: LambdaTest (HyperExecute)
on:
push:
branches:
- '*'
tags:
jobs:
HyperExecute-Playwright:
runs-on: windows-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [windows-latest]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Starting CI testing
shell: bash
env:
CI: true
LT_USERNAME: ${{ secrets.LT_USERNAME }}
LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }}
run: |
echo "STEP 1 ) Download project"
git clone https://github.com/josdejong/mathjs
cd mathjs
echo "STEP 2) Download HyperExecute"
curl https://downloads.lambdatest.com/hyperexecute/windows/hyperexecute.exe -o hyperexecute.exe
echo "STEP 3) Run tests using HyperExecute"
./hyperexecute --user $LT_USERNAME --key $LT_ACCESS_KEY --config test/browser-test-config/lambdatest-hyperexecute-config.yaml

View File

@ -1,21 +0,0 @@
---
version: 0.1
runson: ${matrix.os} # defines the OS to test on
concurrency: 1 # number of machines to execute the testcases
matrix:
os: [linux]
# pre steps sets up the environment for testing
pre:
- npm install
- npm install -g karma karma-jasmine karma-safari-launcher karma-webdriver-launcher karma-mocha karma-webpack mocha
# Smart cache
cacheKey: '{{ checksum "package-lock.json" }}'
cacheDirectories:
- node_modules
testSuites:
- karma start test/browser-test-config/lambdatest-karma.js

View File

@ -1,96 +0,0 @@
const baseKarma = require('./base-karma')
const mochaConfig = require('../../.mocharc.json')
module.exports = function (config) {
const webdriverConfig = {
hostname: 'hub.lambdatest.com', // lambdatest hub address
port: 80
}
const baseConfig = baseKarma(config)
const launcherDefaults = {
base: 'WebDriver',
config: webdriverConfig,
build: 'OSS',
name: 'mathjs',
video: false, // capture video for your test
visual: false, // capture screenshots on each step
network: false, // capture network logs for your test
console: false, // capture browser console logs
terminal: true,
user: process.env.LT_USERNAME,
accessKey: process.env.LT_ACCESS_KEY,
pseudoActivityInterval: 15000 // 5000 ms heartbeat
}
const customLaunchers = {
chrome_windows: {
...launcherDefaults,
browserName: 'Chrome',
version: 'latest',
platform: 'Windows 11'
},
firefox_windows: {
...launcherDefaults,
browserName: 'Firefox',
version: 'latest',
platform: 'Windows 11'
},
// safari_mac: {
// ...launcherDefaults,
// browserName: 'Safari',
// version: 'latest',
// platform: 'macOS Monterey'
// },
edge_windows: {
...launcherDefaults,
browserName: 'MicrosoftEdge',
version: 'latest',
platform: 'Windows 11'
}
// android: {
// ...launcherDefaults,
// browserName: 'Galaxy S10 5G',
// version: '14',
// platform: 'android'
// }
}
config.set(Object.assign(baseConfig, {
hostname: '127.0.0.1', // hostname, where karma web server will run
port: 9876,
basePath: '../..',
frameworks: ['mocha'],
client: {
mocha: {
timeout: mochaConfig.timeout
}
},
files: [
'test/browser-test-config/browser-tests.test.js'
],
plugins: [
'karma-webpack',
'karma-mocha',
'karma-webdriver-launcher'
],
captureTimeout: 600000,
retryLimit: 1,
browserDisconnectTimeout: 90000,
browserDisconnectTolerance: 1,
browserNoActivityTimeout: 90000,
concurrency: Infinity,
logLevel: config.LOG_INFO,
browsers: Object.keys(customLaunchers),
customLaunchers,
singleRun: true,
autoWatch: false
}))
}