Skip to content

Commit

Permalink
Configure Sauce Connect Proxy to work with Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
afcapel committed Aug 31, 2022
1 parent 6fdb59c commit 3aa5bea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ 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: github-action-tunnel

- run: yarn install
- run: bin/ci
8 changes: 0 additions & 8 deletions bin/ci
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3aa5bea

Please sign in to comment.