-
Notifications
You must be signed in to change notification settings - Fork 26
45 lines (38 loc) · 1.34 KB
/
saucelabs.yml
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
name: SauceLabs Integration Tests (UI5 1.71 / IE11)
# Prevent multiple parallel executions as the OpenSauce account is quite limited
concurrency: SauceLabs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: SauceLabs Integration Tests (UI5 1.71 / IE11)
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Use Node.js LTS 20.x
uses: actions/[email protected]
with:
node-version: 20.x
- run: npm ci
- name: Install @openui5/[email protected]
run: npm install -D @openui5/[email protected]
- name: Start sauce-connect
uses: saucelabs/[email protected]
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
tunnelIdentifier: github-${{ github.run_id }}
region: eu-central
# Prevents step from running for forks, which doesn't work as secrets are not available
if: env.SAUCE_USERNAME != null
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
- run: npm run integration-saucelabs
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
# Prevents step from running for forks, which doesn't work as secrets are not available
if: env.SAUCE_USERNAME != null