Skip to content

Commit 9c24a3a

Browse files
committed
saucelabs in GHA
1 parent a6e091c commit 9c24a3a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/workflow.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,20 @@ jobs:
2525
REACT_APP_FIREBASE_STAGING: '1'
2626
FUTURECODER_LANGUAGE: en
2727
run: ./scripts/build.sh
28+
- name: Saucelabs tunnel
29+
uses: saucelabs/sauce-connect-action@v2
30+
with:
31+
username: ${{ secrets.SAUCE_USERNAME }}
32+
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
33+
tunnelName: github-action-tunnel
34+
region: eu-central
2835
- name: Test
2936
env:
3037
FUTURECODER_LANGUAGE: en
3138
FIREBASE_TOKEN: '1//03I37hFeN4kn3CgYIARAAGAMSNwF-L9IrUvqofZbhOkS8YMtQBhw_bu2TpWYC5MHvnaZDsWPP0KJMypXPyoxogkl8A6p2RxPJQwQ'
39+
SAUCE_TUNNEL: github-action-tunnel
40+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
41+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
3242
run: ./scripts/ci_test.sh
3343
- name: Upload test artifacts
3444
uses: actions/upload-artifact@v2

scripts/ci_test.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@ set -eux
44

55
# Run tests in CI, i.e. GitHub Actions
66

7-
export DISPLAY=:99
8-
chromedriver --url-base=/wd/hub &
97
npm install -g firebase-tools
108
firebase emulators:exec "poetry run pytest tests"

0 commit comments

Comments
 (0)