Configure Sauce Connect Proxy to work with Github actions

See:
 - https://docs.saucelabs.com/secure-connections/sauce-connect/index.html
 - https://docs.saucelabs.com/dev/cli/saucectl/usage/ci/github-actions/
This commit is contained in:
Alberto Fernandez-Capel
2022-08-31 12:18:34 +01:00
parent 6fdb59c7cf
commit ea07d33b29
2 changed files with 10 additions and 8 deletions
+10
View File
@@ -15,6 +15,16 @@ jobs:
with:
path: test/node_modules
key: ${{ runner.os }}-${{ hashFiles('test/yarn.lock') }}
- uses: saucelabs/sauce-connect-action@v2
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
tunnelName: Basecamp-CI_tunnel_name
region: us-west
- run: yarn install
- run: bin/ci
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
-8
View File
@@ -13,12 +13,4 @@ if [ -n "$CI" ]; then
echo "GITHUB_BASE_REF: $GITHUB_BASE_REF"
fi
if [ -n "$CI" ] && [ "$GITHUB_REF" == "refs/heads/main" ] && [ -z "$GITHUB_HEAD_REF" ]; then
$(base64 --decode <<< ZXhwb3J0IFNBVUNFX1VTRVJOQU1FPWJhc2VjYW1wX3RyaXgK)
$(base64 --decode <<< ZXhwb3J0IFNBVUNFX0FDQ0VTU19LRVk9MjY3OGE4NzMtNzJmNC00NzU2LTkzYjUtZjFhOGUyZTc3ODIxCg==)
else
$(base64 --decode <<< ZXhwb3J0IFNBVUNFX1VTRVJOQU1FPWJhc2VjYW1wX3RyaXhfZGV2Cg==)
$(base64 --decode <<< ZXhwb3J0IFNBVUNFX0FDQ0VTU19LRVk9NTIzODNlNTItZTM4NC00MzZjLWFkMmUtMGZmNTcyNjIyNjc5Cg==)
fi
yarn test