forked from webdriverio/webdriverio
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.93 KB
/
test-cloud.yml
File metadata and controls
58 lines (49 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Cloud Connection Tests
on:
workflow_call:
# Make this a reusable workflow, no value needed
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
jobs:
cloud_check:
name: Cloud Connection Tests
permissions:
contents: read
runs-on: 'ubuntu-latest'
if: github.ref == 'refs/heads/main'
steps:
- name: ⬇️ Checkout Code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: 🧑🔧 Get Core Dependencies
uses: ./.github/workflows/actions/get-core-dependencies
- name: Download Build Archive
uses: ./.github/workflows/actions/download-archive
with:
name: webdriverio
path: .
filename: webdriverio-build.zip
- name: E2E Connection Test
run: pnpm run test:e2e:cloud
if: github.ref == 'refs/heads/main'
env:
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}
- name: E2E Connection Test w/ Params
run: pnpm run test:e2e:cloud --user $SAUCE_USERNAME_PARAM --key $SAUCE_ACCESS_KEY_PARAM
if: github.ref == 'refs/heads/main'
env:
SAUCE_USERNAME_PARAM: ${{secrets.SAUCE_USERNAME}}
SAUCE_ACCESS_KEY_PARAM: ${{secrets.SAUCE_ACCESS_KEY}}
- name: E2E Connection AWS Device Farm
run: pnpm run test:e2e:launch
if: github.ref == 'refs/heads/main'
env:
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
AWS_DEVICE_FARM_ARN: ${{secrets.AWS_DEVICE_FARM_ARN}}
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: failure()
with:
name: e2e-cloud-connection-tests-logs
path: e2e/wdio/*.log
- name: Check Git Context
uses: ./.github/workflows/actions/check-git-context