-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7029b91
commit d0a98ec
Showing
9 changed files
with
304 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
name: 'JIL: All browsers' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
build-number: | ||
description: 'Used to associate test results reported to New Relic to the BUILD_NUMBER identifier' | ||
required: true | ||
type: string | ||
workflow_call: | ||
inputs: | ||
build-number: | ||
description: 'Used to associate test results reported to New Relic to the BUILD_NUMBER identifier' | ||
required: true | ||
type: string | ||
ref: | ||
description: 'Github branch ref to checkout and run tests on' | ||
required: false | ||
type: string | ||
secrets: | ||
JIL_SAUCE_LABS_USERNAME: | ||
required: true | ||
JIL_SAUCE_LABS_ACCESS_KEY: | ||
required: true | ||
JIL_NODE_NEW_RELIC_LICENSE_KEY: | ||
required: true | ||
|
||
jobs: | ||
chrome-unit: | ||
uses: ./.github/workflows/jil-single-browser.yml | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
browser-target: chrome@* | ||
build-number: ${{ inputs.build-number }} | ||
collection: unit | ||
secrets: inherit | ||
|
||
chrome-functional: | ||
uses: ./.github/workflows/jil-single-browser.yml | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
browser-target: chrome@* | ||
build-number: ${{ inputs.build-number }} | ||
collection: functional | ||
secrets: inherit | ||
|
||
firefox-unit: | ||
uses: ./.github/workflows/jil-single-browser.yml | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
browser-target: firefox@* | ||
build-number: ${{ inputs.build-number }} | ||
collection: unit | ||
secrets: inherit | ||
|
||
firefox-functional: | ||
uses: ./.github/workflows/jil-single-browser.yml | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
browser-target: firefox@* | ||
build-number: ${{ inputs.build-number }} | ||
collection: functional | ||
secrets: inherit | ||
|
||
safari-unit: | ||
uses: ./.github/workflows/jil-single-browser.yml | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
browser-target: safari@* | ||
build-number: ${{ inputs.build-number }} | ||
collection: unit | ||
secrets: inherit | ||
|
||
safari-functional: | ||
uses: ./.github/workflows/jil-single-browser.yml | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
browser-target: safari@* | ||
build-number: ${{ inputs.build-number }} | ||
collection: functional | ||
secrets: inherit | ||
|
||
edge-unit: | ||
uses: ./.github/workflows/jil-single-browser.yml | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
browser-target: edge@* | ||
build-number: ${{ inputs.build-number }} | ||
collection: unit | ||
secrets: inherit | ||
|
||
edge-functional: | ||
uses: ./.github/workflows/jil-single-browser.yml | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
browser-target: edge@* | ||
build-number: ${{ inputs.build-number }} | ||
collection: functional | ||
secrets: inherit | ||
|
||
ios-unit: | ||
uses: ./.github/workflows/jil-single-browser.yml | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
browser-target: ios@* | ||
build-number: ${{ inputs.build-number }} | ||
collection: unit | ||
secrets: inherit | ||
|
||
ios-functional: | ||
uses: ./.github/workflows/jil-single-browser.yml | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
browser-target: ios@* | ||
build-number: ${{ inputs.build-number }} | ||
collection: functional | ||
secrets: inherit | ||
|
||
android-unit: | ||
uses: ./.github/workflows/jil-single-browser.yml | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
browser-target: android@* | ||
build-number: ${{ inputs.build-number }} | ||
collection: unit | ||
secrets: inherit | ||
|
||
android-functional: | ||
uses: ./.github/workflows/jil-single-browser.yml | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
browser-target: android@* | ||
build-number: ${{ inputs.build-number }} | ||
collection: functional | ||
secrets: inherit | ||
|
||
ie-unit: | ||
uses: ./.github/workflows/jil-single-browser.yml | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
browser-target: ie@11 | ||
build-number: ${{ inputs.build-number }} | ||
collection: unit | ||
additional-flags: -P | ||
secrets: inherit | ||
|
||
ie-functional: | ||
uses: ./.github/workflows/jil-single-browser.yml | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
browser-target: ie@11 | ||
build-number: ${{ inputs.build-number }} | ||
collection: functional | ||
additional-flags: -P | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: 'JIL: Single browser' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
collection: | ||
description: 'The collection of jil tests to run' | ||
required: true | ||
type: choice | ||
options: | ||
- unit | ||
- functional | ||
default: 'unit' | ||
browser-target: | ||
description: 'Which browser(s) and version(s) to target with the wdio test: chrome@latest OR chrome@* are examples' | ||
required: true | ||
type: string | ||
build-number: | ||
description: 'Used to associate test results reported to New Relic to the BUILD_NUMBER identifier' | ||
required: true | ||
type: string | ||
additional-flags: | ||
description: 'Additional flags to pass to the jil cli' | ||
required: false | ||
type: string | ||
workflow_call: | ||
inputs: | ||
collection: | ||
description: 'The collection of jil tests to run' | ||
required: false | ||
type: string | ||
default: 'unit' | ||
browser-target: | ||
description: 'Which browser(s) and version(s) to target with the wdio test: chrome@latest OR chrome@* are examples' | ||
required: true | ||
type: string | ||
build-number: | ||
description: 'Used to associate test results reported to New Relic to the BUILD_NUMBER identifier' | ||
required: true | ||
type: string | ||
additional-flags: | ||
description: 'Additional flags to pass to the jil cli' | ||
required: false | ||
type: string | ||
ref: | ||
description: 'Github branch ref to checkout and run tests on' | ||
required: false | ||
type: string | ||
secrets: | ||
JIL_SAUCE_LABS_USERNAME: | ||
required: true | ||
JIL_SAUCE_LABS_ACCESS_KEY: | ||
required: true | ||
JIL_NODE_NEW_RELIC_LICENSE_KEY: | ||
required: true | ||
|
||
jobs: | ||
jil: | ||
name: JIL Test - ${{ inputs.browser-target }} - ${{ inputs.collection }} | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
env: | ||
BUILD_NUMBER: ${{ inputs.build-number }} | ||
NEWRELIC_ENVIRONMENT: ci | ||
JIL_SAUCE_LABS_USERNAME: ${{ secrets.JIL_SAUCE_LABS_USERNAME }} | ||
JIL_SAUCE_LABS_ACCESS_KEY: ${{ secrets.JIL_SAUCE_LABS_ACCESS_KEY }} | ||
NEW_RELIC_LICENSE_KEY: ${{ secrets.JIL_NODE_NEW_RELIC_LICENSE_KEY }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: lts/* | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build agent | ||
run: npm run build:all | ||
- name: Run JIL Tests | ||
run: | | ||
node --max-old-space-size=8192 ./tools/jil/bin/cli.js \ | ||
-f merged \ | ||
-s \ | ||
-b ${{ inputs.browser-target }} \ | ||
--concurrent 10 \ | ||
--${{ inputs.collection}}-only \ | ||
-t 85000 \ | ||
${{ runner.debug && '-v -L -D -d' || '' }} \ | ||
${{ inputs.additional-flags || '' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.