-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core(test): add initial WebdriverIO infrastructure
STENCIL-1190
- Loading branch information
1 parent
7a70281
commit 6d17f26
Showing
75 changed files
with
13,361 additions
and
7,636 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,51 @@ | ||
name: BrowserStack Tests | ||
|
||
on: | ||
merge_group: | ||
pull_request_target: | ||
branches: | ||
- 'main' | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
build_core: | ||
name: Build | ||
uses: ./.github/workflows/build.yml | ||
|
||
run_browserstack: | ||
name: Run WebdriverIO Component Tests | ||
runs-on: ubuntu-22.04 | ||
needs: [build_core] | ||
|
||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
ref: ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.number) || '' }} | ||
persist-credentials: false | ||
|
||
- name: Use Node Version from Volta (Karma) | ||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | ||
with: | ||
# pull the version to use from the volta key in package.json | ||
node-version-file: './test/karma/package.json' | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Download Build Archive | ||
uses: ./.github/workflows/actions/download-archive | ||
with: | ||
name: stencil-core | ||
path: . | ||
filename: stencil-core-build.zip | ||
|
||
- name: Run WebdriverIO Component Tests | ||
run: npm run test.wdio | ||
|
||
- name: Check Git Context | ||
uses: ./.github/workflows/actions/check-git-context |
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
Oops, something went wrong.