mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
tests: More descriptive Sauce Labs name
This commit is contained in:
parent
2994ef3c3c
commit
85231cb774
3 changed files with 23 additions and 7 deletions
2
.github/workflows/frontend-admin-tests.yml
vendored
2
.github/workflows/frontend-admin-tests.yml
vendored
|
@ -16,6 +16,7 @@ jobs:
|
||||||
- name: Generate Sauce Labs strings
|
- name: Generate Sauce Labs strings
|
||||||
id: sauce_strings
|
id: sauce_strings
|
||||||
run: |
|
run: |
|
||||||
|
printf %s\\n '::set-output name=name::${{ github.workflow }} - ${{ github.job }} - Node ${{ matrix.node }}'
|
||||||
printf %s\\n '::set-output name=tunnel_id::${{ github.run_id }}-${{ github.run_number }}-${{ github.job }}-node${{ matrix.node }}'
|
printf %s\\n '::set-output name=tunnel_id::${{ github.run_id }}-${{ github.run_number }}-${{ github.job }}-node${{ matrix.node }}'
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -69,6 +70,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
|
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
|
||||||
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
|
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
|
||||||
|
SAUCE_NAME: ${{ steps.sauce_strings.outputs.name }}
|
||||||
TRAVIS_JOB_NUMBER: ${{ steps.sauce_strings.outputs.tunnel_id }}
|
TRAVIS_JOB_NUMBER: ${{ steps.sauce_strings.outputs.tunnel_id }}
|
||||||
GIT_HASH: ${{ steps.environment.outputs.sha_short }}
|
GIT_HASH: ${{ steps.environment.outputs.sha_short }}
|
||||||
run: |
|
run: |
|
||||||
|
|
22
.github/workflows/frontend-tests.yml
vendored
22
.github/workflows/frontend-tests.yml
vendored
|
@ -8,6 +8,12 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Generate Sauce Labs strings
|
||||||
|
id: sauce_strings
|
||||||
|
run: |
|
||||||
|
printf %s\\n '::set-output name=name::${{ github.workflow }} - ${{ github.job }}'
|
||||||
|
printf %s\\n '::set-output name=tunnel_id::${{ github.run_id }}-${{ github.run_number }}-${{ github.job }}'
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
@ -29,14 +35,15 @@ jobs:
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.SAUCE_USERNAME }}
|
username: ${{ secrets.SAUCE_USERNAME }}
|
||||||
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
|
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
|
||||||
tunnelIdentifier: ${{ github.run_id }}-${{ github.run_number }}-${{ github.job }}
|
tunnelIdentifier: ${{ steps.sauce_strings.outputs.tunnel_id }}
|
||||||
|
|
||||||
- name: Run the frontend tests
|
- name: Run the frontend tests
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
|
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
|
||||||
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
|
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
|
||||||
TRAVIS_JOB_NUMBER: ${{ github.run_id }}-${{ github.run_number }}-${{ github.job }}
|
SAUCE_NAME: ${{ steps.sauce_strings.outputs.name }}
|
||||||
|
TRAVIS_JOB_NUMBER: ${{ steps.sauce_strings.outputs.tunnel_id }}
|
||||||
GIT_HASH: ${{ steps.environment.outputs.sha_short }}
|
GIT_HASH: ${{ steps.environment.outputs.sha_short }}
|
||||||
run: |
|
run: |
|
||||||
src/tests/frontend/travis/runner.sh
|
src/tests/frontend/travis/runner.sh
|
||||||
|
@ -46,6 +53,12 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Generate Sauce Labs strings
|
||||||
|
id: sauce_strings
|
||||||
|
run: |
|
||||||
|
printf %s\\n '::set-output name=name::${{ github.workflow }} - ${{ github.job }}'
|
||||||
|
printf %s\\n '::set-output name=tunnel_id::${{ github.run_id }}-${{ github.run_number }}-${{ github.job }}'
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
@ -100,14 +113,15 @@ jobs:
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.SAUCE_USERNAME }}
|
username: ${{ secrets.SAUCE_USERNAME }}
|
||||||
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
|
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
|
||||||
tunnelIdentifier: ${{ github.run_id }}-${{ github.run_number }}-${{ github.job }}
|
tunnelIdentifier: ${{ steps.sauce_strings.outputs.tunnel_id }}
|
||||||
|
|
||||||
- name: Run the frontend tests
|
- name: Run the frontend tests
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
|
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
|
||||||
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
|
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
|
||||||
TRAVIS_JOB_NUMBER: ${{ github.run_id }}-${{ github.run_number }}-${{ github.job }}
|
SAUCE_NAME: ${{ steps.sauce_strings.outputs.name }}
|
||||||
|
TRAVIS_JOB_NUMBER: ${{ steps.sauce_strings.outputs.tunnel_id }}
|
||||||
GIT_HASH: ${{ steps.environment.outputs.sha_short }}
|
GIT_HASH: ${{ steps.environment.outputs.sha_short }}
|
||||||
run: |
|
run: |
|
||||||
src/tests/frontend/travis/runner.sh
|
src/tests/frontend/travis/runner.sh
|
||||||
|
|
|
@ -27,9 +27,9 @@ process.on('exit', (code) => {
|
||||||
const sauceTestWorker = async.queue((testSettings, callback) => {
|
const sauceTestWorker = async.queue((testSettings, callback) => {
|
||||||
const browser = wd.promiseChainRemote(
|
const browser = wd.promiseChainRemote(
|
||||||
config.host, config.port, config.username, config.accessKey);
|
config.host, config.port, config.username, config.accessKey);
|
||||||
const name =
|
const name = [process.env.GIT_HASH].concat(process.env.SAUCE_NAME || []).concat([
|
||||||
`${process.env.GIT_HASH} - ${testSettings.browserName} ` +
|
`${testSettings.browserName} ${testSettings.version}, ${testSettings.platform}`,
|
||||||
`${testSettings.version}, ${testSettings.platform}`;
|
]).join(' - ');
|
||||||
testSettings.name = name;
|
testSettings.name = name;
|
||||||
testSettings.public = true;
|
testSettings.public = true;
|
||||||
testSettings.build = process.env.GIT_HASH;
|
testSettings.build = process.env.GIT_HASH;
|
||||||
|
|
Loading…
Reference in a new issue