-
Notifications
You must be signed in to change notification settings - Fork 29
39 lines (31 loc) · 1000 Bytes
/
remote-tests.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
name: SauceLabs Browser Testing
on:
pull_request:
branches:
- master
types: [closed]
jobs:
test:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
name: Set up NodeJS
with:
node-version: 18
- name: Install
run: npm install
# Sause Labs part
- uses: saucelabs/sauce-connect-action@v2.3.1
with:
username: ${{ secrets.SAUCE_USERNAME }}
accesskey: ${{ secrets.SAUCE_ACCESS_KEY }}
tunnelIdentifier: github-action-tunnel-custom-elements-${{ github.run_id }}
# github-action-tunnel-custom-elements-${process.env.GITHUB_RUN_ID}
# Run the tests
- name: Run tests in Sauce
run: npm run ci-test
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}