Skip to content

Commit

Permalink
Setting up variables for re-run
Browse files Browse the repository at this point in the history
  • Loading branch information
darpanLalwani committed Sep 19, 2024
1 parent c3c46c0 commit bc99bc0
Show file tree
Hide file tree
Showing 7 changed files with 10,824 additions and 2,003 deletions.
20 changes: 20 additions & 0 deletions setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,26 @@ inputs:
project-name:
description: 'Project name for the tests'
required: false
rerun-attempt:
description: 'ReRun attempt'
required: false
default: 'none'
repository:
description: 'GitHub context - Repository'
required: false
default: 'none'
run-id:
description: 'GitHub context - Run_ID'
required: false
default: 'none'
github-token:
description: 'GitHub Token for authentication'
required: false
default: 'none'
github-app:
description: 'BrowserStack Github App'
required: false
default: 'bstack-gha-app[bot]'
runs:
using: 'node20'
main: 'dist/index.js'
11 changes: 10 additions & 1 deletion setup-env/config/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@ module.exports = {
ACCESS_KEY: 'access-key',
BUILD_NAME: 'build-name',
PROJECT_NAME: 'project-name',
RERUN_ATTEMPT: 'rerun-attempt',
REPOSITORY: 'repository',
RUN_ID: 'run-id',
GITHUB_TOKEN: 'github-token',
GITHUB_APP: 'github-app',
},

ENV_VARS: {
BROWSERSTACK_USERNAME: 'BROWSERSTACK_USERNAME',
BROWSERSTACK_ACCESS_KEY: 'BROWSERSTACK_ACCESS_KEY',
BROWSERSTACK_BUILD_NAME: 'BROWSERSTACK_BUILD_NAME',
BROWSERSTACK_PROJECT_NAME: 'BROWSERSTACK_PROJECT_NAME',
BROWSERSTACK_PROJECT_NAME: 'BROWSERSTACK_PROJECT_NAME'

Check failure on line 18 in setup-env/config/constants.js

View workflow job for this annotation

GitHub Actions / unit-tests (ubuntu-latest)

Missing trailing comma

Check failure on line 18 in setup-env/config/constants.js

View workflow job for this annotation

GitHub Actions / unit-tests (macos-latest)

Missing trailing comma
},

BROWSERSTACK_TEMPLATE: {
DETAILS_API_URL: 'https://integrate.browserstack.com/api/ci-tools/v1/builds/{runId}/rebuild/details?tool=github-actions&as_bot=true',
},
};
Loading

0 comments on commit bc99bc0

Please sign in to comment.